From 9a01dcf5d10ee0a3954731d7b3295f513241990f Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Fri, 18 Oct 2024 09:02:47 +0100 Subject: [PATCH] Update workflows. --- .github/workflows/golangci-lint.yml | 20 +++++++++++++------- .github/workflows/test.yml | 16 ++++++++++------ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index eb5f4f0..292230e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -2,20 +2,26 @@ name: golangci-lint on: push: branches: - - master + - master pull_request: + permissions: contents: read + pull-requests: read + jobs: golangci: name: lint - runs-on: ubuntu-latest + runs-on: 'ubuntu-24.04' steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: - go-version: '1.20' - - uses: actions/checkout@v3 + cache: false + go-version: '1.22' + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: latest + version: 'latest' + args: '--timeout=60m' + only-new-issues: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 767a453..2b93a7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,14 +2,18 @@ name: test on: push: branches: - - master + - master pull_request: + jobs: test: - runs-on: ubuntu-latest + runs-on: 'ubuntu-24.04' steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: - go-version: '1.20' - - uses: actions/checkout@v3 - - uses: n8maninger/action-golang-test@v1 + cache: false + go-version: '1.22' + - uses: actions/checkout@v4 + - uses: n8maninger/action-golang-test@v2 + with: + args: "-race;-timeout=30m"