Skip to content

Commit

Permalink
ci: add Node.js CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Feb 3, 2024
1 parent 9a17bf0 commit e855fc7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node.js CI

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

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

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

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8
- name: Install and run tests
run: pnpm it

0 comments on commit e855fc7

Please sign in to comment.