Skip to content

Commit

Permalink
Merge pull request #9 from Coda-Research-Group/ui-tests
Browse files Browse the repository at this point in the history
Add UI tests to the CI pipeline, skip non-functioning ones, add coverage
  • Loading branch information
ProchazkaDavid authored Oct 2, 2024
2 parents 4234a9e + 09aa5f1 commit 93f9bdb
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 365 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
# Push events on main and dev branch
- main
- fair-impact-hw1
- ui-tests
# Sequence of patterns matched against refs/tags
tags: '*'

Expand All @@ -18,6 +18,27 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '21.6.0' # Match the version in your Dockerfile

- name: Install UI dependencies
working-directory: ./ui
run: |
npm ci
npm install --save-dev @vitest/coverage-v8
- name: Run tests with coverage
working-directory: ./ui
run: npm run test:coverage

- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: ui/coverage/

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
Loading

0 comments on commit 93f9bdb

Please sign in to comment.