Skip to content

improve(workflow): ci split to build and test #2357

improve(workflow): ci split to build and test

improve(workflow): ci split to build and test #2357

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
setup:
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
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 run test