Skip to content

Commit

Permalink
ci: Add GitHub Actions workflow to run tests on multiple Node.js vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
vgrichina committed Feb 19, 2025
1 parent 910ca5e commit 0f06a6a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test

0 comments on commit 0f06a6a

Please sign in to comment.