-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.16 KB
/
cache.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Cache dependencies
on:
push:
branches:
- main
jobs:
changes:
uses: ./.github/workflows/path-changes.yaml
cache-go-deps:
name: Cache Go dependencies and tests
needs: changes
if: ${{ needs.changes.outputs.go_deps == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Check out code
uses: actions/checkout@v4
with:
lfs: true
- name: Fix mtimes for Go test cache
run:
go run hack/ci/update-mtime/main.go
- name: Install Go and dependencies
id: setup-go
uses: ./.github/actions/setup-go
- name: Build caches
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
env:
TEST_SKIP_AUTH0_INTEGRATIONS: "true"
run: just warm-cache
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: latest
args: '--config=.golangci.yaml'
- name: Write go cache
id: cache
uses: actions/cache/save@v5
with:
path: ${{ steps.setup-go.outputs.cache-paths }}
key: ${{ steps.setup-go.outputs.cache-key }}