From 1d7fa33b6b621da9780c4a2b1ea4a269c65ff1c0 Mon Sep 17 00:00:00 2001 From: Yuliang Weng Date: Tue, 10 Aug 2021 14:46:13 +0100 Subject: [PATCH] ci: fix scripts (2) --- .github/workflows/ci-without-cache.yml | 6 ++++-- .github/workflows/ci.yml | 6 ++++-- .github/workflows/deploy.yml | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-without-cache.yml b/.github/workflows/ci-without-cache.yml index 3bc40400a..41e8ca1ec 100644 --- a/.github/workflows/ci-without-cache.yml +++ b/.github/workflows/ci-without-cache.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b900c16a1..f9801aa51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 65bd03444..4cf09eb34 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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