Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

pr.yml

61 lines1.6 KB

1name: PR
2​
3on:
4 pull_request:
5 paths-ignore:
6 - 'docs/**'
7 - 'media/**'
8 - '**/*.md'
9​
10concurrency:
11 group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
12 cancel-in-progress: true
13​
14env:
15 NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
16​
17permissions:
18 contents: read
19​
20jobs:
21 test:
22 name: Test
23 runs-on: ubuntu-latest
24 steps:
25 - name: Checkout
26 uses: actions/checkout@v5.0.0
27 with:
28 fetch-depth: 0
29 - name: Start Nx Agents
30 run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
31 - name: Setup Tools
32 uses: tanstack/config/.github/setup@main
33 - name: Get base and head commits for `nx affected`
34 uses: nrwl/nx-set-shas@v4.3.3
35 with:
36 main-branch-name: main
37 - name: Run Checks
38 run: pnpm run test:pr --parallel=3
39 - name: Stop Nx Agents
40 if: ${{ always() }}
41 run: npx nx-cloud stop-all-agents
42 - name: Upload coverage to Codecov
43 uses: codecov/codecov-action@v4
44 with:
45 directory: packages
46 env:
47 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
48 preview:
49 name: Preview
50 runs-on: ubuntu-latest
51 steps:
52 - name: Checkout
53 uses: actions/checkout@v5.0.0
54 with:
55 fetch-depth: 0
56 - name: Setup Tools
57 uses: tanstack/config/.github/setup@main
58 - name: Build Packages
59 run: pnpm run build:all
60 - name: Publish Previews
61 run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*'