Skip to content

Commit

Permalink
improve(workflow): ci split to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Mar 11, 2024
1 parent 4c9ccfa commit 4d30834
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Build

on: [pull_request]

Expand All @@ -21,7 +21,7 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: 8.6.0
- name: CI
- name: Run build
run: |
pnpm install
pnpm run ci
pnpm run build
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on: [pull_request]

jobs:
test:
if: github.repository == 'oceanbase/oceanbase-design'
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.0
- name: Run test
run: |
pnpm install
pnpm run test

0 comments on commit 4d30834

Please sign in to comment.