Switch to miniBill/elm-xml-parser #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main Workflow | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
# TODO publish when tagged | |
test-and-deploy-benchmark: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
key: v1-${{ hashFiles('package-lock.json') }}-${{ hashFiles('elm.json', 'elm-tooling.json') }} | |
restore-keys: | | |
v1-${{ hashFiles('package-lock.json') }}- | |
v1- | |
path: | | |
node_modules | |
elm-stuff | |
benchmarks/elm-stuff | |
~/.elm | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- run: npm test | |
- run: npx elm-format --validate src/ tests/ benchmarks/ | |
- run: npm run generate-benchmark | |
- name: Deploy Benchmark | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |