diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d50be087..9105705c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,16 +14,21 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - uses: nrwl/nx-set-shas@v2 - uses: pnpm/action-setup@v2 - uses: actions/setup-node@v3 with: node-version: 'lts/*' cache: 'pnpm' - - run: pnpm install - - run: pnpm run format:check - - run: pnpm run build:since - - run: pnpm run lint:since - - name: Run pnpm test:since + - name: Install dependencies + run: pnpm install + - name: Check formatting + run: pnpm run format:check + - name: Build + run: pnpm run nx affected --target=build --parallel=3 + - name: Lint + run: pnpm run nx affected --target=lint --parallel=3 + - name: Test uses: GabrielBB/xvfb-action@v1 with: - run: pnpm run test:since + run: pnpm run nx affected --target=test --parallel=3 diff --git a/package.json b/package.json index 9106cb1f..a7eb42c5 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,8 @@ "format": "prettier --write .", "format:check": "prettier --check .", "build:all": "nx run-many --target=build --all", - "build:since": "nx affected --target=build", "lint:all": "nx run-many --target=lint --all", - "lint:since": "nx affected --target=lint", "test:all": "nx run-many --target=test --all", - "test:since": "nx affected --target=test", "release": "pnpm build:all && changeset publish" }, "workspaces": [