Update README to handle Toggle actions #718
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: pre-deploy | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
pre-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
cache: "yarn" | |
- uses: jorelali/setup-elm@v3 | |
with: | |
elm-version: 0.19.1 | |
- name: Install JS dependencies | |
# use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: make install | |
- name: Run elm tests | |
run: make elm-tests | |
- name: Run e2e tests | |
run: make ci-e2e-test | |
- name: elm-analyse | |
run: make elm-analyse |