Big migration to reatom #38
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: 'Run tests' | |
on: | |
push: | |
branches: ['main', 'develop'] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install deps | |
run: npm ci | |
- name: Run tests | |
run: npm run test:coverage | |
- name: "Report Coverage" | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
json-summary-path: coverage/coverage-summary.json | |
json-final-path: coverage/coverage-final.json |