Skip to content

Commit

Permalink
ci: cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Broderick-Westrope committed Aug 19, 2024
1 parent 7de156c commit 221fff0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x

- name: golangci-lint
- name: Checkout code
uses: actions/checkout@v4

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ on:
tags:
- v*

permissions:
contents: write

jobs:
goreleaser:
name: GoReleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x

- name: Checkout code
uses: actions/checkout@v4

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{matrix.os}}
steps:
- name: Set up Go ${{matrix.go-version}}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go}}
id: go

- name: Check out code into the Go module directory
- name: Checkout code
uses: actions/checkout@v4

- name: Download Go modules
- name: Download dependencies
run: go mod download

- name: Build
Expand Down

0 comments on commit 221fff0

Please sign in to comment.