Skip to content

Commit 679f891

Browse files
committed
workflow: Add integration tests, bump go version
Setup Bats and run integration tests with them after build. + bump go compiler to version 1.23
1 parent bc78eda commit 679f891

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build_and_maybe_release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
build:
99
env:
1010
RELEASE_OS: ubuntu-24.04
11-
RELEASE_GOVER: "1.22"
11+
RELEASE_GOVER: "1.23"
1212

1313
strategy:
1414
fail-fast: false
1515
matrix:
1616
os: [ ubuntu-24.04, ubuntu-22.04, ubuntu-20.04 ]
17-
gover: [ "1.22", "1.21", "1.20" ]
17+
gover: [ "1.23", "1.22", "1.21", "1.20" ]
1818

1919
runs-on: ${{ matrix.os }}
2020

@@ -23,8 +23,17 @@ jobs:
2323
- uses: actions/setup-go@v5
2424
with:
2525
go-version: ${{ matrix.gover }}
26+
- name: Setup Bats
27+
uses: bats-core/[email protected]
2628
- name: Build the project
2729
run: go build .
30+
- name: Run integration tests
31+
env:
32+
# For `bats -F pretty`
33+
TERM: xterm-256color
34+
run: |
35+
sudo -b ./docker-on-top
36+
bats -F pretty tests/
2837
- name: Save built binary
2938
if: startsWith(github.ref, 'refs/tags/') && matrix.os == env.RELEASE_OS && matrix.gover == env.RELEASE_GOVER
3039
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)