Skip to content

Commit

Permalink
feat(ci): add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Apr 10, 2024
1 parent 819bbc6 commit 18a011b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Test'
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- name: 'Install Deps'
run: pnpm install
- name: 'Test'
run: pnpm test --coverage.enabled true
- name: 'Report Coverage'
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2

0 comments on commit 18a011b

Please sign in to comment.