Skip to content

Commit

Permalink
ci: add test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Feb 4, 2024
1 parent d861084 commit 0d5376c
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:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.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 0d5376c

Please sign in to comment.