From c6826aad31a5c39b431ffca561bd0c8cb515ee11 Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Wed, 4 Feb 2026 00:13:34 +0200 Subject: [PATCH] Update github actions --- .github/workflows/e2e.yml | 4 ++++ .github/workflows/go_cov.yml | 37 +++++++++++++++++------------ .github/workflows/golangci-lint.yml | 8 +++++++ 3 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 21e5a3e..246f84e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ master ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: e2e-tests: runs-on: ubuntu-latest diff --git a/.github/workflows/go_cov.yml b/.github/workflows/go_cov.yml index 2c185c3..22f24c8 100644 --- a/.github/workflows/go_cov.yml +++ b/.github/workflows/go_cov.yml @@ -1,25 +1,31 @@ -name: Go +name: Go Coverage + on: push: + branches: [ master ] pull_request: + branches: [ master ] schedule: - # Run every 12 hours, at the 15 minute mark. E.g. - # 2020-11-29 00:15:00 UTC, 2020-11-29 12:15:00 UTC, 2020-11-30 00:15:00 UTC - - cron: '15 */12 * * *' -jobs: + - cron: '15 */12 * * *' - build: - name: Build and Unit Test +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Build and Test runs-on: ubuntu-latest + timeout-minutes: 10 steps: + - name: Check out code + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: ^1.13 - - - name: Check out code - uses: actions/checkout@v2 + go-version: '1.23' + cache: true - name: Build run: go build -v ./... @@ -27,7 +33,8 @@ jobs: - name: Test run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... - - name: Upload Coverage - uses: shogo82148/actions-goveralls@v1 + - name: Send coverage + uses: coverallsapp/github-action@v2 with: - path-to-profile: coverage.out + file: coverage.out + format: golang diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 697536f..baac4af 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,11 +1,19 @@ name: golangci-lint on: push: + branches: [ master ] pull_request: + branches: [ master ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: golangci: name: lint runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Setup Go uses: actions/setup-go@v5