Skip to content

Commit

Permalink
ci(test): Add test CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuki31 committed Apr 14, 2024
1 parent 5d521e8 commit 76a4a08
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-ver: [16.x, 18.x, 20.x]

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

0 comments on commit 76a4a08

Please sign in to comment.