diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1526236d..3ef0f88d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,9 +1,9 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: @@ -14,7 +14,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: '1.21' + go-version-file: 'go.mod' - name: Check go mod status run: | @@ -62,8 +62,8 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.21 + go-version-file: 'go.mod' - name: Run tests run: make test - name: Codecov - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 \ No newline at end of file + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 diff --git a/.github/workflows/check_registry.yaml b/.github/workflows/check_registry.yaml index 6e328cf1..6d69aaff 100644 --- a/.github/workflows/check_registry.yaml +++ b/.github/workflows/check_registry.yaml @@ -27,7 +27,7 @@ jobs: id: setup-go uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: "1.21" + go-version-file: 'go.mod' - name: Run registries check id: build run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 07092ad4..d3799bff 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,7 +33,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: '1.21' + go-version-file: 'go.mod' - name: Get OS and arch info run: | GOOSARCH=${{matrix.goosarch}} @@ -58,4 +58,4 @@ jobs: draft: false files: ${{env.BINARY_NAME}} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}