Skip to content

Commit

Permalink
ci: rollout macos-12, go1.21 and add macos-15, go1.23 and amazonlinux…
Browse files Browse the repository at this point in the history
…:2023 to align with the smoke-tests (#113)

Signed-off-by: Eliott Bouhana <[email protected]>
  • Loading branch information
eliottness authored Oct 18, 2024
1 parent d79b264 commit 290956b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_test_bare_metal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
strategy:
fail-fast: false
matrix:
runs-on: [ macos-14, macos-13, macos-12, ubuntu-22.04, ubuntu-20.04, windows-latest, arm-4core-linux ]
go-version: [ '1.22', '1.21' ]
runs-on: [ macos-15, macos-14, macos-13, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-latest, arm-4core-linux ]
go-version: [ '1.23', '1.22' ]
include:
# Test with DD_APPSEC_WAF_LOG_LEVEL (only latest go version)
- go-version: '1.22'
Expand Down
22 changes: 8 additions & 14 deletions .github/workflows/_test_containerized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,21 @@ jobs:
- golang:{0}-alpine
- golang:{0}-bookworm
- golang:{0}-bullseye
- golang:{0}-buster
# RPM-based image
- amazonlinux:2 # pretty popular on AWS workloads
go-version: [ "1.23-rc", "1.22", "1.21" ]
- amazonlinux:2023
go-version: [ "1.23", "1.22" ]
include:
# Test with DD_APPSEC_WAF_LOG_LEVEL (only latest go, without any particular tag)
- go-version: '1.23-rc'
- go-version: '1.23'
waf-log-level: TRACE
exclude:
# Prune inexistent build images (debian buster is on LTS but won't get new go version images)
- go-version: '1.21'
image: golang:{0}-buster
# Prune inexistent build images (debian buster is on LTS but won't get new go version images)
- go-version: '1.22'
image: golang:{0}-buster
# Prune inexistent build images (debian buster is on LTS but won't get new go version images)
- go-version: '1.23-rc'
image: golang:{0}-buster
# The amazonlinux:2 variant is only relevant for the default go version yum ships (currently 1.22)
- go-version: '1.21'
- go-version: '1.23'
image: amazonlinux:2
# The amazonlinux:2023 variant is only relevant for the default go version yum ships (currently 1.22)
- go-version: '1.23'
image: amazonlinux:2023
name: ${{ matrix.arch }} ${{ format(matrix.image, matrix.go-version) }} go${{ matrix.go-version }}${{ matrix.waf-log-level && format(' (DD_APPSEC_WAF_LOG_LEVEL={0})', matrix.waf-log-level) || '' }}
# We use ARM runners when needed to avoid the performance hit of QEMU
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-latest' || 'arm-4core-linux' }}
Expand Down Expand Up @@ -70,7 +64,7 @@ jobs:
-eGOMODCACHE="/go/pkg/mod" \
"${{ format(matrix.image, matrix.go-version) }}"
- name: Install AmazonLinux 2 requirements
if: matrix.image == 'amazonlinux:2'
if: matrix.image == 'amazonlinux:2' || matrix.image == 'amazonlinux:2023'
run: |-
sudo docker exec -i gha-${{ github.run_id }} \
yum install -y golang
Expand Down

0 comments on commit 290956b

Please sign in to comment.