web: fix shell syntax highlighting in preview screen #66
This file contains hidden or 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: Web Tests | |
| on: [push, workflow_dispatch] | |
| jobs: | |
| web: | |
| name: Test web | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: yarn | |
| cache-dependency-path: web/yarn.lock | |
| - name: Yarn Install | |
| run: | | |
| cd web && yarn install --frozen-lockfile && cd - | |
| - name: ESLint | |
| run: | | |
| cd web && yarn eslint . --ext .js,.jsx | |
| - name: Test with Vitest | |
| run: | | |
| cd web && yarn test |