Skip to content

Commit

Permalink
fix: github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Aug 7, 2024
1 parent 624fe01 commit 03462a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@ jobs:
working-directory: ./frontend
strategy:
matrix:
npm-test:
npm_script:
- lint
- test
- coverage
- check-build
steps:
- uses: actions/checkout@v4
- name: Setup Nodejs Env
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- run: npm ci
- run: npm run lint
- run: npm run coverage
- run: npm run ${{ matrix.npm_script }}
- name: upload coverage
uses: codecov/codecov-action@v4
if: matrix.npm_script == 'coverage'
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build:student": "COMPONENT=student-ui npm run _build",
"build:studio": "COMPONENT=studio-ui npm run _build",
"build": "npm run build:studio && npm run build:student",
"check-build": "npm run build && git diff --exit-code",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest",
Expand Down

0 comments on commit 03462a3

Please sign in to comment.