diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5312614..2d9080d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,59 +2,18 @@ name: CI on: push: - branches: [main, develop] + branches: [main] pull_request: - branches: [main, develop] + branches: [main] + workflow_dispatch: -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 10.12.0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build core package - run: pnpm turbo run build --filter=@airiscode/core - - test: - name: Test - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout - uses: actions/checkout@v4 +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 10.12.0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build core package - run: pnpm turbo run build --filter=@airiscode/core - - - name: Run core tests - run: pnpm turbo run test --filter=@airiscode/core || true +jobs: + ci: + uses: agiletec-inc/.github/.github/workflows/node-pnpm-ci.yml@main + with: + node-version: '22' + run-command: pnpm turbo run build lint test