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 a8200a0
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI

on: [pull_request]
on: [push, pull_request]

jobs:
build:
setup:
if: github.repository == 'oceanbase/oceanbase-design'
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -21,7 +21,27 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: 8.6.0
- name: CI
build:
needs: setup
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
fail-fast: false
steps:
- name: Build
run: |
pnpm run build
test:
needs: setup
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
fail-fast: false
steps:
- name: Build
run: |
pnpm install
pnpm run ci
pnpm run test

0 comments on commit a8200a0

Please sign in to comment.