From 43a51bc186b44df666833688fc2b10b9bae0b2a1 Mon Sep 17 00:00:00 2001 From: Sergiy Kulanov Date: Sun, 4 Jan 2026 21:06:33 +0200 Subject: [PATCH] chore: Update CI pipelines (#249) Signed-off-by: Sergiy Kulanov --- .github/workflows/codecov.yaml | 4 ++-- .github/workflows/pr.yaml | 28 ++++++++++++++++++++++++++++ .github/workflows/release.yaml | 4 ++-- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/pr.yaml diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 1b9103e8..07792845 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -11,10 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ env.GOLANG_VERSION }} diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 00000000..b3468cbd --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,28 @@ +name: "Run tests" + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + tests: + name: Run tests + runs-on: ubuntu-latest + + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v5 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: "1.24" + + - name: "run tests" + run: make build && make test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bd902e1c..63f170f8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,12 +16,12 @@ jobs: SOURCE_TAG: ${{ github.ref }} steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: '0' - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ env.GOLANG_VERSION }}