diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4346fa..4398878 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,29 +7,29 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go-version: ["1.19", "1.20"] + go-version: ["1.22", "1.23"] runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Make run: make build-all-amd - name: Upload Build as Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: macos_amd - path: dist/macos_amd + name: macos_amd-${{ matrix.go-version }} + path: dist/macos_amd-${{ matrix.go-version }} - name: Upload Build as Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: linux - path: dist/linux + name: linux-${{ matrix.go-version }} + path: dist/linux-${{ matrix.go-version }} - name: Upload Build as Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: windows - path: dist/windows + name: windows-${{ matrix.go-version }} + path: dist/windows-${{ matrix.go-version }} diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 848dc87..44d1cfa 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -10,15 +10,15 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go-version: ["1.20"] + go-version: ["1.23"] runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Licenses tool run: go get github.com/google/go-licenses - name: License diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2931038..537551d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,16 +11,16 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go-version: ["1.20"] + go-version: ["1.23"] runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build run: sh build.sh ${GITHUB_REF##*/} - name: Upload diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06700bd..223c2d1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,20 +7,24 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go-version: ["1.19", "1.20"] + go-version: ["1.22", "1.23"] runs-on: ${{ matrix.os }} steps: - name: Install tools run: curl --version - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test if: matrix.os != 'ubuntu-latest' - run: go test -v ./pkg/... + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 5 + command: go test -v ./pkg/... - name: Test with coverage if: matrix.os == 'ubuntu-latest' run: go test -v -coverprofile=coverage.txt -covermode=atomic ./pkg/...