Skip to content

Commit

Permalink
chore: support ci
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Oct 27, 2024
1 parent d861865 commit b4ff662
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
run: corepack enable

- name: Set node version to 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --no-frozen-lockfile

- name: Run linter
run: pnpm lint

- name: Run test cases
run: pnpm test

0 comments on commit b4ff662

Please sign in to comment.