Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump runners and fix Go caching #155

Merged
merged 3 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
target: [vault]

name: Check module ${{ matrix.target }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

name: Continuous Integration

Expand All @@ -26,15 +26,6 @@ jobs:
go-version-file: go.mod
check-latest: true

- name: Cache Go modules
uses: actions/[email protected]
id: go-mod-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Get dependencies
run: go mod download

Expand Down Expand Up @@ -66,7 +57,7 @@ jobs:
release:
name: release
needs: [build]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

outputs:
container_digest: ${{ steps.container_info.outputs.container_digest }}
Expand Down Expand Up @@ -145,7 +136,7 @@ jobs:

provenance:
name: Generate provenance
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: [release]
if: startsWith(github.ref, 'refs/tags/')

Expand Down Expand Up @@ -188,7 +179,7 @@ jobs:
name: container-provenance
needs: [release]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion example/vault/environments/local/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {

required_providers {
vault = {
source = "hashicorp/vault"
source = "hashicorp/vault"
version = "~> 3.20.0"
}
}
Expand Down