Skip to content

Commit

Permalink
feat: add CI workflow (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon authored Jan 18, 2025
1 parent ed63336 commit 2881634
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

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

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [18, 19, 20, 21, 22, 23]

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Node.js
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test

0 comments on commit 2881634

Please sign in to comment.