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

pr.yml

36 lines896 Bytes

1name: pr
2​
3on: [pull_request]
4​
5env:
6 NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
7​
8jobs:
9 main:
10 name: Nx Cloud
11 uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0
12 with:
13 node-version: 18.16.0
14 pnpm-version: 8.6.0
15 main-branch-name: alpha
16 artifacts-name: nx-cloud-artifact
17 artifacts-path: |
18 **/build/**
19 **/coverage/**
20 !**/node_modules/**
21 parallel-commands: |
22 npx nx test:format
23 npx nx affected --targets=test:eslint,test:types,test:build,test:lib
24 codecov:
25 name: Codecov
26 needs: main
27 runs-on: ubuntu-latest
28 steps:
29 - uses: actions/checkout@v3
30 - name: Downloading artifacts
31 uses: actions/download-artifact@v3
32 with:
33 name: nx-cloud-artifact
34 path: .
35 - name: Upload coverage to Codecov
36 uses: codecov/codecov-action@v3