From 1aec49deaad18c3e64883d35c03b11bf0cd4b4fe Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Tue, 17 Sep 2024 15:02:30 +0000 Subject: [PATCH] ci: update ci things --- .github/workflows/ci.yaml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b5aab3d..7809289 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,8 +1,16 @@ name: Run CI Tests -on: [push] +on: + pull_request: + paths-ignore: + - 'README.md' + - 'LICENSE' + push: + branches: + - 'main' jobs: run-lint: - runs-on: ubuntu-22.04 + timeout-minutes: 5 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: hashicorp/setup-golang@v3 @@ -10,22 +18,25 @@ jobs: version-file: go.mod - uses: golangci/golangci-lint-action@v3 with: - version: v1.55.2 + version: v1.61.0 skip-cache: true run-copywrite: + timeout-minutes: 5 runs-on: - ubuntu-22.04 + ubuntu-24.04 steps: - uses: actions/checkout@v4 - - uses: hashicorp/setup-copywrite@v1.1.2 + - uses: hashicorp/setup-copywrite@v1.1.3 - name: verify copyright run: | copywrite headers --plan run-tests: + timeout-minutes: 5 strategy: fail-fast: false matrix: os: + - ubuntu-24.04 - ubuntu-22.04 - ubuntu-20.04 - macos-14