Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
ci: use actions/cache@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Sep 21, 2022
1 parent ad7c743 commit b3dd309
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
key: build-workspace-${{ github.run_id }}
path: |
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
key: build-guardoni-${{ github.run_id }}-${{ matrix.config.os }}
restore-keys: |
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
with:
ref: ${{ inputs.ref }}

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
key: build-${{ github.run_id }}
restore-keys: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/guardoni_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
key: build-guardoni-${{ github.run_id }}-${{ matrix.config.os }}
restore-keys: |
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/master_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock

- uses: actions/cache@v2
- uses: actions/cache@v3
with:
key: build-workspace-${{ github.run_id }}
path: |
Expand Down Expand Up @@ -91,7 +91,8 @@ jobs:
cache: 'yarn'
cache-dependency-path: yarn.lock

- uses: actions/cache@v2
- uses: actions/cache@v3
id: guardoni-cache
with:
key: build-guardoni-${{ github.run_id }}-${{ matrix.config.os }}
restore-keys: |
Expand All @@ -110,6 +111,14 @@ jobs:
- name: Install dependencies
run: yarn

- name: Build Guardoni
if: steps.guardoni-cache.outputs.cache-hit != 'true'
env:
NODE_ENV: production
run: |
yarn guardoni build:cli
yarn guardoni build:app
- name: Build Guardoni for ${{ matrix.config.os }}
env:
DOTENV_CONFIG_PATH: .env
Expand Down

0 comments on commit b3dd309

Please sign in to comment.