Dawn release #170
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: Test and Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
test-and-lint-front-end: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./web | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- uses: actions/cache@v4 | |
id: cache-node-modules | |
with: | |
path: "web/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('web/package-lock.json') }} | |
- name: Install Dependencies | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: CI=true npm run test |