Skip to content

Commit

Permalink
github: Use go mod version of go
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Nov 5, 2024
1 parent 65feca8 commit 411720d
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
path: ${{ steps.ShellCheck.outputs.sarif }}
if: github.event_name == 'pull_request'

- name: Install Go (1.22)
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
go-version-file: 'go.mod'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -177,22 +177,8 @@ jobs:
strategy:
fail-fast: false
matrix:
go: ["1.22.x"]
suite: ["cluster", "standalone"]
backend: ["dir", "btrfs", "lvm", "zfs", "ceph", "random"]
include:
- go: "1.22.x"
suite: cluster
backend: dir
- go: "1.22.x"
suite: standalone
backend: dir
- go: stable
suite: cluster
backend: dir
- go: stable
suite: standalone
backend: dir

steps:
- name: Performance tuning
Expand Down Expand Up @@ -237,13 +223,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go (${{ matrix.go }})
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version-file: 'go.mod'

- name: Check compatibility with min Go version (${{ matrix.go }})
if: matrix.go == '1.22.x'
- name: Check compatibility with min Go version
run: |
set -eux
GOMIN="$(sed -n 's/^GOMIN=\([0-9.]\+\)$/\1/p' Makefile)"
Expand Down Expand Up @@ -380,7 +365,7 @@ jobs:
sudo microceph.ceph status
sudo rm -f /snap/bin/rbd
- name: "Run system tests (${{ matrix.go }}, ${{ matrix.suite }}, ${{ matrix.backend }})"
- name: "Run system tests (${{ matrix.suite }}, ${{ matrix.backend }})"
run: |
set -eux
chmod +x ~
Expand All @@ -393,8 +378,6 @@ jobs:
strategy:
fail-fast: false
matrix:
go:
- 1.22.x
os:
- ubuntu-latest
- macos-latest
Expand All @@ -405,10 +388,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go (${{ matrix.go }})
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
go-version-file: 'go.mod'

- name: Create build directory
run: |
Expand Down Expand Up @@ -475,10 +458,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Go (1.22)
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
go-version-file: 'go.mod'

- name: Install dependencies
run: |
Expand Down Expand Up @@ -544,10 +527,10 @@ jobs:
ssh-keyscan git.launchpad.net >> ~/.ssh/known_hosts
ssh-keygen -qlF git.launchpad.net | grep -xF 'git.launchpad.net RSA SHA256:UNOzlP66WpDuEo34Wgs8mewypV0UzqHLsIFoqwe8dYo'
- name: Install Go (${{ matrix.go }})
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
go-version-file: 'go.mod'

- name: Trigger Launchpad snap build
env:
Expand Down

0 comments on commit 411720d

Please sign in to comment.