Skip to content

Merge pull request #324 from permafrost-dev/snyk-upgrade-d0fea3e2400a… #693

Merge pull request #324 from permafrost-dev/snyk-upgrade-d0fea3e2400a…

Merge pull request #324 from permafrost-dev/snyk-upgrade-d0fea3e2400a… #693

Workflow file for this run

name: run-tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version: [20, 22, 24]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run the tests with coverage
run: |
bun test --coverage-junit --coverage --reporter-outfile=coverage.xml --reporter=junit
- name: Upload failed test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
report_type: coverage
disable_telem: true