From 8ecf189fc689adc54f8aeb0ab07096874ce58897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20K=C4=99pczy=C5=84ski?= Date: Wed, 18 Sep 2024 10:05:19 +0200 Subject: [PATCH] chore(CI): use newer version of checkout, setup-go and golangci-lint-action --- .github/workflows/linter.yml | 19 ++++++++----------- .github/workflows/run-unit-tests.yml | 13 ++++++------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5ea1939..60fb8c4 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,4 +1,4 @@ -name: Go Lint +name: golangci-lint on: push: @@ -7,18 +7,15 @@ on: pull_request: jobs: - lint: - if: github.event_name == 'pull_request' + golangci: + name: lint runs-on: ubuntu-latest - timeout-minutes: 5 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.22' - cache: false + go-version: stable - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: v1.56.0 - args: --timeout 3m + version: v1.60 diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 4ee3ee1..0d6cff6 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: go test on: push: @@ -7,20 +7,19 @@ on: pull_request: jobs: - test: + run-tests: + name: unit-tests strategy: matrix: go-version: [1.18, 1.22] os: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Run Unit Tests run: | - go test -v + go test