Add project views API in the backend #8
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: | |
pull_request: | |
types: [synchronize] | |
paths: | |
- 'frontend/**' | |
- Makefile | |
- .github/workflows/lint-frontend.yml | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Lint | |
run: | | |
cd frontend | |
npm install | |
npm run type-check | |
npm run lint | |
npm run format | |
npm run style-lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Test | |
run: | | |
cd frontend | |
npm install | |
npm run test:unit:coverage | |
- name: Report coverage | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
working-directory: ./frontend | |
pr-number: ${{ github.event.number }} | |
build: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Build | |
shell: bash | |
run: make build-frontend |