Skip to content

Example pr

Example pr #1

Workflow file for this run

name: Run tests and upload coverage
on:
pull_request:
types: [opened, reopened]
push:
branches:
- main
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v4
with:
cache-dependency-path: javascript/package-lock.json
- name: Install dependencies
working-directory: ./javascript
run: npm install
- name: Run tests
working-directory: ./javascript
run: NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" npx jest --coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./javascript/coverage