Skip to content

Commit

Permalink
ci: Avoid uploading coverage files in Nx cache (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Jan 5, 2024
1 parent 2a2c33f commit 48e241a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
if: github.repository == 'TanStack/form'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Setup pnpm
Expand All @@ -34,7 +35,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'pnpm'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Run Tests
Expand All @@ -51,3 +52,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: packages
11 changes: 7 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ env:

jobs:
test:
name: 'Test'
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
Expand All @@ -31,14 +32,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'pnpm'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Get appropriate base and head commits for `nx affected` commands
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'main'
- name: Run Checks
run: pnpm run test:pr
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: packages

0 comments on commit 48e241a

Please sign in to comment.