From 05c7e234778592a1155d24887cd95616dbaaa7e5 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Sun, 13 Oct 2024 22:58:17 +0100 Subject: [PATCH] Update workflows. --- .github/workflows/golangci-lint.yml | 16 +++++++++++----- .github/workflows/test.yml | 11 +++++++---- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index eb5f4f0..2069583 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 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: + cache: false go-version: '1.20' - - uses: actions/checkout@v3 + - 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..d12699c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,14 +2,17 @@ name: test on: push: branches: - - master + - master pull_request: jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: + cache: false go-version: '1.20' - - uses: actions/checkout@v3 - - uses: n8maninger/action-golang-test@v1 + - uses: actions/checkout@v4 + - uses: n8maninger/action-golang-test@v2 + with: + args: "-race;-timeout=30m"