Skip to content

Commit 15c1e7f

Browse files
committed
workflow: Add integration tests, bump go and ubuntu
Setup Bats and run integration tests with them after build. Bump go compiler to version 1.25. Remove ubuntu 20.04 (no longer available on github).
1 parent 9a1ead8 commit 15c1e7f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build_and_maybe_release.yml

Lines changed: 12 additions & 3 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.25"
1212

1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ ubuntu-24.04, ubuntu-22.04, ubuntu-20.04 ]
17-
gover: [ "1.22", "1.21", "1.20" ]
16+
os: [ ubuntu-24.04, ubuntu-22.04 ]
17+
gover: [ "1.25", "1.24", "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)