Skip to content

Commit

Permalink
ci: fix scripts (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed Aug 10, 2021
1 parent 917b20e commit 1d7fa33
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-without-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ jobs:

- uses: actions/checkout@v2

- name: Run unit tests
- name: Jest cache
id: gatsby-jest-cache
uses: actions/cache@v2
run: npm run test:update
with:
path: .jest-cache
key: ${{ runner.os }}-jestCache-${{ github.run_id }}

- name: Run unit tests
run: npm run test:update

- name: Install dependencies
run: npm ci
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ jobs:
key: ${{ runner.os }}-gatsby-ci-${{ github.run_id }}
restore-keys: ${{ runner.os }}-gatsby-ci-

- name: Run unit tests
- name: Jest cache
id: gatsby-jest-cache
uses: actions/cache@v2
run: npm run test:update
with:
path: .jest-cache
key: ${{ runner.os }}-jestCache-${{ github.run_id }}

- name: Run unit tests
run: npm run test:update

- name: Install dependencies
run: npm ci

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ jobs:
with:
ref: master

- name: Run unit tests
- name: Jest cache
id: gatsby-jest-cache
uses: actions/cache@v2
run: npm run test:update
with:
path: .jest-cache
key: ${{ runner.os }}-jestCache-${{ github.run_id }}

- name: Run unit tests
run: npm run test:update

- name: Gatsby Cache
id: gatsby-deploy-cache
uses: actions/cache@v2
Expand Down

0 comments on commit 1d7fa33

Please sign in to comment.