Skip to content

Commit

Permalink
ci bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cageyv committed Sep 20, 2024
1 parent b8ebf62 commit 39a1109
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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') }}
Expand Down

0 comments on commit 39a1109

Please sign in to comment.