diff --git a/.github/labeler.yaml b/.github/labeler.yaml index 9c4165a..252ccee 100644 --- a/.github/labeler.yaml +++ b/.github/labeler.yaml @@ -1,5 +1,5 @@ github-actions: -- '.github/*' +- '.github/**' - '.goreleaser.yaml' dependencies: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f54d3a0..92c4905 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,17 +7,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 + - name: Setup Go + uses: actions/setup-go@v4 with: - go-version: 1.19 - + go-version-file: go.mod - name: Generate run: go generate -v ./... - - name: Build run: go build -v ./... - - name: Test run: go test -v ./... diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index 77f5edc..a419bee 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -34,6 +34,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 01f4f6c..8f2879f 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -14,9 +14,9 @@ jobs: with: fetch-depth: 0 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.19.x + go-version-file: go.mod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/go.mod b/go.mod index 5f5c280..4f3fefb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bschaatsbergen/cidr -go 1.19 +go 1.21.4 require github.com/spf13/cobra v1.8.0