From 6a6e183a707a7b0fcfade68abc963d4a595e6792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Sun, 17 Mar 2024 16:46:51 +0100 Subject: [PATCH 1/4] Use Go version defined in go.mod file, also enable cache for it --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48e86d5..f80881d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,15 @@ jobs: build: strategy: matrix: - go: ['1.17'] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Setup uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + check-latest: true + cache: true - name: Prepare checkout run: git config --global core.autocrlf false From 71cb66c55bb03d937d832d65bbdbeb12a87385cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Sat, 18 May 2024 12:01:24 +0200 Subject: [PATCH 2/4] upstream changes --- .github/workflows/lint.yml | 5 +++-- .github/workflows/test.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5dcc2cc..9844f08 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,14 +12,15 @@ jobs: lint: strategy: matrix: - go: ['1.21'] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Setup uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + check-latest: true + cache: true - name: Prepare checkout run: git config --global core.autocrlf false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d8d979b..304f66a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,14 +12,15 @@ jobs: test: strategy: matrix: - go: ['1.21'] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Setup uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + check-latest: true + cache: true - name: Prepare checkout run: git config --global core.autocrlf false From 0157197ab77e38ff1d7f803275991ccd85fe874f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Tue, 20 Aug 2024 17:06:36 +0200 Subject: [PATCH 3/4] run against stable and oldstable --- .github/workflows/lint.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index de06519..6b227aa 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,14 +12,14 @@ jobs: lint: strategy: matrix: + go: [stable, oldstable] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Setup uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' - check-latest: true + go-version: ${{ matrix.go }} cache: true - name: Prepare checkout diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 63fb78a..4600a18 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,14 +12,14 @@ jobs: test: strategy: matrix: + go: [stable, oldstable] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Setup uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' - check-latest: true + go-version: ${{ matrix.go }} cache: true - name: Prepare checkout From 21d43064bf90933474246e49ca0013eadbf2e253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Fri, 23 Aug 2024 16:21:03 +0200 Subject: [PATCH 4/4] use latest golangci-lint-action --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6b227aa..a34607e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,5 +31,5 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v6.1.0 with: - version: "v1.54" + version: latest args: --timeout=5m