diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9a0773..7642e13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,20 +17,15 @@ jobs: CGO_ENABLED: 0 steps: + # https://github.com/marketplace/actions/checkout + - name: Check out code + uses: actions/checkout@v4 # https://github.com/marketplace/actions/setup-go-environment - name: Set up Go ${{ env.GO_VERSION }} uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - check-latest: true - - # https://github.com/marketplace/actions/checkout - - name: Check out code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Check and get dependencies run: | go mod download diff --git a/.github/workflows/go-cross.yml b/.github/workflows/go-cross.yml index fbddac5..0ea2c11 100644 --- a/.github/workflows/go-cross.yml +++ b/.github/workflows/go-cross.yml @@ -20,16 +20,15 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: + # https://github.com/marketplace/actions/checkout + - name: Checkout code + uses: actions/checkout@v4 + # https://github.com/marketplace/actions/setup-go-environment - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - check-latest: true - - # https://github.com/marketplace/actions/checkout - - name: Checkout code - uses: actions/checkout@v4 - name: Test run: go test -v -cover ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c31e7f..7d769fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,25 +13,23 @@ jobs: CGO_ENABLED: 0 steps: + # https://github.com/marketplace/actions/checkout + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 0 # https://github.com/marketplace/actions/setup-go-environment - name: Set up Go ${{ env.GO_VERSION }} uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - check-latest: true - - # https://github.com/marketplace/actions/checkout - - name: Check out code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # https://goreleaser.com/ci/actions/ - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}