Skip to content

Commit

Permalink
ci: add unit-test action
Browse files Browse the repository at this point in the history
  • Loading branch information
badspider7 committed Aug 22, 2024
1 parent de76bad commit 5910995
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Unit Test

on:
push:
branches: [dev]
pull_request:
branches: [dev]

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [21.2.0]
fail-fast: false

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

steps:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2
name: Install pnpm

- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install deps
run: pnpm i --frozen-lockfile

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build

0 comments on commit 5910995

Please sign in to comment.