diff --git a/.github/workflows/ci.yml b/.github/workflows/build.yml similarity index 88% rename from .github/workflows/ci.yml rename to .github/workflows/build.yml index 9bc3ec232..f31a71f00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: CI +name: Build on: [pull_request] @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..bc9d0042b --- /dev/null +++ b/.github/workflows/test.yml @@ -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