Skip to content

Commit

Permalink
chores: cache packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mgufrone committed Oct 30, 2023
1 parent 226505c commit 56ffaba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
setup:
name: Repo Setup
id: cache-npm
runs-on: ubuntu-latest
steps:
- name: Set up Go
Expand All @@ -19,6 +20,18 @@ jobs:
go-version: '1.21'
- name: Check out code
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-go-mod
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/go/pkg
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: |
go mod download -x
Expand Down

0 comments on commit 56ffaba

Please sign in to comment.