Skip to content

Merge pull request #21 from cerbos/dependabot/go_modules/github.com/g… #33

Merge pull request #21 from cerbos/dependabot/go_modules/github.com/g…

Merge pull request #21 from cerbos/dependabot/go_modules/github.com/g… #33

Workflow file for this run

name: Cache dependencies
on:
push:
branches:
- main
jobs:
changes:
uses: ./.github/workflows/path-changes.yaml

Check failure on line 10 in .github/workflows/cache.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cache.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/cache.yaml" -> "./.github/workflows/path-changes.yaml" : failed to fetch workflow: workflow was not found.
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 }}