From 0305e7c4e20474a755f911458651f77ae1e85c50 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Mon, 31 Mar 2025 13:44:21 -0400 Subject: [PATCH 1/2] Use actions-go-ci-library --- .github/workflows/ci.yaml | 11 ++++++++ .github/workflows/ci.yml | 54 --------------------------------------- 2 files changed, 11 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..621b913 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,11 @@ +name: CI +permissions: + contents: read +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] +jobs: + ci: + name: Build, Test, and Lint + uses: nicheinc/actions-go-ci-library/.github/workflows/action.yaml@v1 + secrets: inherit diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 27841df..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: CI -on: [pull_request] -permissions: - contents: read -jobs: - go-versions: - name: Check Go Versions - runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.versions.outputs.matrix }} - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set Go Versions - uses: arnested/go-version-action@v1 - id: versions - - test: - runs-on: ubuntu-latest - needs: go-versions - strategy: - fail-fast: false - matrix: - go: ${{ fromJSON(needs.go-versions.outputs.matrix) }} - name: "Build (${{ matrix.go }})" - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go }} - - - name: Build - run: go build ./... - - - name: Test - run: go test -cover -race ./... - - lint: - runs-on: ubuntu-latest - name: "lint" - continue-on-error: true - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - version: latest - args: --disable-all -E govet From 3fcf2aa60bc204609bb7edd9aef017ae58ec128b Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Tue, 24 Jun 2025 11:13:39 -0400 Subject: [PATCH 2/2] Bump to actions-go-ci-library@v2 --- .github/workflows/ci.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 621b913..9ec2391 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,5 +7,4 @@ on: jobs: ci: name: Build, Test, and Lint - uses: nicheinc/actions-go-ci-library/.github/workflows/action.yaml@v1 - secrets: inherit + uses: nicheinc/actions-go-ci-library/.github/workflows/action.yaml@v2