Skip to content

Commit

Permalink
ci(github): add a step to test the frontend
Browse files Browse the repository at this point in the history
Test results are commited to the repository.
  • Loading branch information
jmiguelv committed Jul 9, 2024
1 parent 0d69460 commit 9d5024c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/pages.yml → .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,28 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: create env file
- name: Create .env file
run: |
touch .env
echo DEBUG=true >> ./frontend/.env
- name: Install dependencies and build
- name: Install dependencies
run: |
npm ci
npm run -w frontend build
- name: Test
continue-on-error: true
run: |
npm run -w frontend test
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "ci(frontend): update test results"
file_pattern: "frontend/test-results/*.json"

- name: Build
run: |
npm run frontend:build
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit 9d5024c

Please sign in to comment.