From 39a11098a40136298a200320bef750bb0228325d Mon Sep 17 00:00:00 2001 From: Vladimir Samoylov Date: Fri, 20 Sep 2024 13:43:12 +0700 Subject: [PATCH] ci bug fix --- .github/workflows/ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c690a8a..d008c55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,17 +13,13 @@ jobs: name: tests runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 - name: Set up Go 1.x uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Run test.sh run: | @@ -35,34 +31,30 @@ jobs: permissions: packages: write contents: write + pull-requests: read + checks: write needs: [ tests ] steps: + - name: Checkout + uses: actions/checkout@v4 - name: Set up Go 1.x uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Docker Login - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: golangci-lint - uses: golangci/golangci-lint-action@v3.7.0 - with: - version: v1.54 + uses: golangci/golangci-lint-action@v6 - name: Prepare a snapshot release if: ${{ !startsWith(github.ref, 'refs/tags/v') }}