--- #583
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: Frontend | |
on: [push] | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: read | |
jobs: | |
frontend: | |
name: Frontend test, lint and format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Node.js dependencies | |
run: cd frontend && npm install | |
- name: Copy env file | |
run: "cp .env.development frontend/.env.test" | |
- name: Run tests | |
run: | | |
cd frontend | |
npx vitest --run | |
- name: Lint and format | |
uses: wearerequired/[email protected] | |
with: | |
eslint: true | |
eslint_dir: frontend/ | |
eslint_extensions: js,jsx,ts,tsx | |
prettier: true | |
prettier_dir: frontend/ |