Skip to content

build(deps): bump github/codeql-action from 1 to 4 #27

build(deps): bump github/codeql-action from 1 to 4

build(deps): bump github/codeql-action from 1 to 4 #27

Workflow file for this run

name: Test
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run code format check
run: pnpm run check
- name: Build project
run: pnpm run build
- name: Run tests
run: pnpm run test:lib
- name: Run tests with coverage
run: pnpm run test:cov
if: matrix.node-version == '20.x'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: yourtion/node-erest