Skip to content

Commit

Permalink
ci: update actions to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
twelvelabs committed Oct 20, 2024
1 parent 897449e commit 1f17e2c
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected]
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
Expand All @@ -34,7 +34,7 @@ jobs:
run: make test

- name: Coverage
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # [email protected]
uses: codecov/codecov-action@v4
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -46,20 +46,19 @@ jobs:
pull-requests: read
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected]
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # [email protected]
uses: golangci/golangci-lint-action@v6
with:
version: latest
version: v1.61
only-new-issues: true
skip-cache: true

release:
runs-on: ubuntu-latest
Expand All @@ -70,39 +69,35 @@ jobs:
permissions:
contents: write
packages: write
id-token: write # for cosign
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # [email protected]
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # [email protected]
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true

- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # [email protected]
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # [email protected]

- name: Set up Cosign
uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # [email protected]
uses: docker/setup-buildx-action@v3

- name: Log in to the container registry
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # [email protected]
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Release
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # [email protected]
uses: goreleaser/goreleaser-action@v6
with:
version: latest
version: ~> 2.3
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1f17e2c

Please sign in to comment.