Skip to content

Commit

Permalink
ci: consolidate go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
subpop committed Oct 9, 2024
1 parent 9828434 commit 7e35183
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,16 @@ name: Go
on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.18"]
steps:
- name: Updating ...
run: sudo apt-get -qq update

- uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v5
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Go build (source)
run: go build ./...

- name: Go build (tests)
run: go test ./...

- name: Go vet
run: go vet ./...
go-version-file: go.mod
- uses: actions/checkout@v4
- run: go build ./...
- run: go test ./...
- run: go vet ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/subpop/xrhidgen

go 1.18
go 1.23

require (
github.com/google/go-cmp v0.6.0
Expand Down

0 comments on commit 7e35183

Please sign in to comment.