Open History to see the last commit
1name: PR
2β
3on:
4 pull_request:
5β
6concurrency:
7 group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
8 cancel-in-progress: true
9β
10env:
11 NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
12β
13permissions:
14 contents: read
15β
16jobs:
17 test:
18 name: Test
19 runs-on: ubuntu-latest
20 steps:
21 - name: Checkout
22 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23 with:
24 fetch-depth: 0
25 persist-credentials: false
26 - name: Start Nx Agents
27 run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
28 - name: Setup Tools
29 uses: TanStack/config/.github/setup@7bbdf583c2fc1a7f596283cd01e0e44c43f574f2 # main
30 - name: Get base and head commits for `nx affected`
31 uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
32 with:
33 main-branch-name: main
34 - name: Run Checks
35 run: pnpm run test:pr --parallel=3
36 - name: Stop Nx Agents
37 if: ${{ always() }}
38 run: npx nx-cloud stop-all-agents
39 - name: Upload coverage to Codecov
40 uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
41 with:
42 directory: packages
43 env:
44 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
45 preview:
46 name: Preview
47 runs-on: ubuntu-latest
48 steps:
49 - name: Checkout
50 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
51 with:
52 persist-credentials: false
53 - name: Setup Tools
54 uses: TanStack/config/.github/setup@7bbdf583c2fc1a7f596283cd01e0e44c43f574f2 # main
55 - name: Build Packages
56 run: pnpm run build:all
57 - name: Publish Previews
58 run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'
59 version-preview:
60 name: Version Preview
61 runs-on: ubuntu-latest
62 permissions:
63 contents: read
64 pull-requests: write
65 steps:
66 - name: Checkout
67 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
68 with:
69 persist-credentials: false
70 - name: Setup Tools
71 uses: TanStack/config/.github/setup@7bbdf583c2fc1a7f596283cd01e0e44c43f574f2 # main
72 - name: Changeset Preview
73 uses: TanStack/config/.github/changeset-preview@7bbdf583c2fc1a7f596283cd01e0e44c43f574f2 # main