Oppdater til ny vite mode #56
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
name: "verify: frontend" | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- 'apps/frontend/**' | |
- '.github/*/verify-frontend.yaml' | |
jobs: | |
verify: | |
name: Verify there are no lint or typescript errors | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
cache-dependency-path: apps/frontend | |
- name: Install dependencies | |
working-directory: apps/frontend | |
run: npm ci | |
- name: Run ESLint | |
working-directory: apps/frontend | |
run: npm run lint | |
- name: Run Stylelint | |
working-directory: apps/frontend | |
run: npm run stylelint | |
- name: Check for typescript errors | |
working-directory: apps/frontend | |
run: npm run check-types |