Skip to content

Bump actions/cache from 3.3.3 to 4.0.0 #471

Bump actions/cache from 3.3.3 to 4.0.0

Bump actions/cache from 3.3.3 to 4.0.0 #471

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Go 1.21
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: './go.mod'
check-latest: true
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Bats and bats libs
uses: bats-core/bats-action@e4efaa4edd28f6c43ea5bd55c0a23bdd62360100 # v1.5.4
- name: Verify go.mod is sane
run: go mod tidy && git diff --no-patch --exit-code
- name: Install dependencies
run: go mod download
- name: Build
run: make
- name: Test
run: make test
- name: Create Integration Pre-Reqs
run: ./scripts/generate-test-chart.sh
- name: Upload helm-sigstore-test-0.1.0.tgz
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4.1.0
with:
name: helm-sigstore-test-0.1.0.tgz
path: |
helm-sigstore-test-0.1.0.tgz
helm-sigstore-test-0.1.0.tgz.prov
.gnupg/sigstore-secring.gpg
- name: Integration Test
run: make integration