Skip to content

changes workflows branch #36

changes workflows branch

changes workflows branch #36

Workflow file for this run

#nodb check
name: Test
on:
push:
branches: ['db-stable']
pull_request:
branches: ['db-stable']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: ./.github/packages/pnpm
- name: Run tests and collect coverage
run: |
npm run test
# Copy and paste the codecov/test-results-action here
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: github.repository_owner == 'sitcommunity'
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}