From 7e3518389a442c9e943762aa6dc0ff80163012af Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Wed, 9 Oct 2024 11:58:54 -0400 Subject: [PATCH] ci: consolidate go.yml --- .github/workflows/go.yml | 28 +++++++--------------------- go.mod | 2 +- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fed4b24..3b84704 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 ./... diff --git a/go.mod b/go.mod index ff2c48c..9c9af94 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/subpop/xrhidgen -go 1.18 +go 1.23 require ( github.com/google/go-cmp v0.6.0