From 0ee3cf33ccf5a9a053ba89fae1dfb3bfe44ca052 Mon Sep 17 00:00:00 2001 From: Zlatko Bratkovic Date: Mon, 21 Jul 2025 09:56:16 +0200 Subject: [PATCH 1/2] BUG/MEDIUM: ci: fix generating specification on github side --- .github/workflows/actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 7528f19b..cea56b53 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -22,7 +22,7 @@ jobs: id: go - name: Compare run: | - go run specification/build/build.go -file specification/haproxy-spec.yaml > specification/build/haproxy_spec_to_compare.yaml + go run cmd/specification/*.go -file specification/haproxy-spec.yaml > specification/build/haproxy_spec_to_compare.yaml diff -u specification/build/haproxy_spec_to_compare.yaml specification/build/haproxy_spec.yaml - name: YAML script validation run: | From 1cc7f439176f1838935d7c3fcd27ca730f48c244 Mon Sep 17 00:00:00 2001 From: Zlatko Bratkovic Date: Mon, 21 Jul 2025 10:10:25 +0200 Subject: [PATCH 2/2] BUILD/MINOR: ci: update github action steps with new versions --- .github/workflows/actions.yml | 64 ++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index cea56b53..2ce6e0bf 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -14,11 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" + check-latest: true id: go - name: Compare run: | @@ -32,11 +33,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" + check-latest: true - name: clearing models run: rm -rf models/* - name: generating models @@ -51,12 +53,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' - - uses: actions/cache@v2 + go-version-file: "go.mod" + check-latest: true + - uses: actions/cache@v4 + id: go-cache with: path: | ~/.cache/go-build @@ -83,12 +87,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' - - uses: actions/cache@v2 + go-version-file: "go.mod" + check-latest: true + - uses: actions/cache@v4 + id: go-cache with: path: | ~/.cache/go-build @@ -110,11 +116,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" + check-latest: true - name: tidy run: go mod tidy - name: changes @@ -125,11 +132,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" + check-latest: true id: go - name: Build run: | @@ -140,11 +148,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" + check-latest: true id: go - name: Test run: | @@ -155,11 +164,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" + check-latest: true id: go - name: Test run: | @@ -173,6 +183,6 @@ jobs: haproxyVersion: [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8] steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: e2e Test run: DOCKER_HAPROXY_VERSION=${{ matrix.haproxyVersion }} make e2e-docker