Add PR pipeline check (#27)

This commit is contained in:
AceDataCloud committed 2024-01-03 14:01:36 +08:00
1 parent d369faee6f
commit 6ab900fdb0
2 files changed
+37

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
name: check
on:
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Run lint
run: yarn lint
- name: Build
run: yarn build