From 520a0461fca1ee698038969a7c4a4439bae1e234 Mon Sep 17 00:00:00 2001 From: Ilia Bakhterev Date: Thu, 3 Oct 2024 17:44:17 +0200 Subject: [PATCH 1/2] tests job added --- .github/workflows/{golangci-lint.yaml => ci.yaml} | 10 ++++++++++ 1 file changed, 10 insertions(+) rename .github/workflows/{golangci-lint.yaml => ci.yaml} (67%) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/ci.yaml similarity index 67% rename from .github/workflows/golangci-lint.yaml rename to .github/workflows/ci.yaml index e93f1e9..a807953 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/ci.yaml @@ -22,3 +22,13 @@ jobs: uses: golangci/golangci-lint-action@v6 with: version: v1.60.3 + + tests: + name: go-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable + - run: make test From dc5eadae49f5e50fedcf53372f8d0d74f0c2399c Mon Sep 17 00:00:00 2001 From: Ilia Bakhterev <39965096+bakhterets@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:43:21 +0200 Subject: [PATCH 2/2] Update ci.yaml ${{ env.GO_VERSION }} added --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a807953..a5062bf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,9 @@ on: - master pull_request: +env: + GO_VERSION: '1.22' + permissions: contents: read @@ -30,5 +33,5 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version: ${{ env.GO_VERSION }} - run: make test