Skip to content

Commit

Permalink
workflows: update action versions
Browse files Browse the repository at this point in the history
Pin to the last patch release of a Go minor, rather than the first.
  • Loading branch information
bgilbert committed Aug 9, 2022
1 parent 18065fb commit 6bd836f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
name: Go
"on":
on:
push:
branches: [main]
pull_request:
Expand All @@ -11,22 +10,22 @@ permissions:

env:
# Minimum supported Go toolchain
ACTION_MINIMUM_TOOLCHAIN: "1.12"
ACTION_MINIMUM_TOOLCHAIN: "1.12.x"

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.17', '1.18']
go: ['1.17.x', '1.18.x']
steps:
- run: sudo apt-get -qq update
- name: Install libsystemd-dev
run: sudo apt-get install libsystemd-dev
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Go fmt
Expand All @@ -44,9 +43,9 @@ jobs:
- run: sudo apt-get -qq update
- name: Install libsystemd-dev
run: sudo apt-get install libsystemd-dev
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{ env['ACTION_MINIMUM_TOOLCHAIN'] }}
- name: Go fmt
Expand Down

0 comments on commit 6bd836f

Please # to comment.