Another round of change from ranjith. #83
Workflow file for this run
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
on: [push] | |
jobs: | |
tests-and-linters: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install NPM Dependencies | |
run: npm install | |
- name: Install Elm Tools | |
run: npx elm-tooling install | |
- name: elm-format | |
run: npx elm-format --validate | |
- name: eslint | |
run: npm run lint | |
- name: elm-review | |
run: npx elm-review | |
- name: elm unit tests | |
run: npm run test | |
- name: build library | |
run: npm run build | |
- name: web tests | |
run: npm run web-test-runner | |
# cypress-run: | |
# runs-on: ubuntu-20.04 | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# - name: Cypress run | |
# uses: cypress-io/github-action@v4 | |
# with: | |
# browser: chrome | |
# start: npm run serve |