Skip to content

Commit

Permalink
ci: Initial test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuki31 committed Jul 8, 2024
1 parent 9f02322 commit 940f3ef
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
branches: [ "master" ]
pull_request:

jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ Windows, Ubuntu, macOS ]
node-ver: [14.x, 16.x, 20.x]

steps:
- uses: actions/checkout@v4
- name: Setup Node.js v${{ matrix.node-ver }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-ver }}
cache: 'npm'
- name: Clean install the project
run: npm ci
- name: Test the project
run: npm test

0 comments on commit 940f3ef

Please sign in to comment.