From a9f53509b576d1cfb4578f07a5ae3130c17540f5 Mon Sep 17 00:00:00 2001 From: joelei Date: Sat, 7 Sep 2024 23:06:28 +0800 Subject: [PATCH] feat: upgrade github action --- .github/workflows/build.yml | 10 ++++++---- .github/workflows/docker-publish.yml | 8 ++++---- .github/workflows/lint.yml | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd4252d..ed31186 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,12 +10,14 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v3 - - name: set up Go - uses: actions/setup-go@v4 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 with: go-version-file: go.mod + - name: make build run: make build - name: make test diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9aa8287..01b7006 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -42,12 +42,12 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: 1.21.0 + go-version-file: go.mod - name: Build run: make build @@ -56,7 +56,7 @@ jobs: run: make test - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 77f47b0..e6aaa8e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,10 +11,11 @@ jobs: name: lint runs-on: arc-runner-set steps: - - name: checkout - uses: actions/checkout@v3 - - name: setup go - uses: actions/setup-go@v4 + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 with: go-version-file: go.mod - name: golangci-lint