From 2f4bc0802f5efe49dfd5e4562eb0a603ad16ac37 Mon Sep 17 00:00:00 2001 From: Heng Lu Date: Thu, 10 Oct 2024 11:08:03 +0800 Subject: [PATCH] update github workflows --- .github/workflows/codeql.yaml | 4 ++-- .github/workflows/depscheck.yaml | 4 ++-- .github/workflows/golint.yaml | 4 ++-- .github/workflows/thirty-two-bit.yaml | 4 ++-- .github/workflows/unit-test.yaml | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 52846e90e..7359a9292 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -32,9 +32,9 @@ jobs: languages: ${{ matrix.language }} - name: Set up Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: - go-version: 1.20 + go-version-file: 'go.mod' - name: Build run: | diff --git a/.github/workflows/depscheck.yaml b/.github/workflows/depscheck.yaml index d547d28a5..268b2d5fc 100644 --- a/.github/workflows/depscheck.yaml +++ b/.github/workflows/depscheck.yaml @@ -15,9 +15,9 @@ jobs: fail-fast: true steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: 'go.mod' - run: chmod -R +x ./scripts - run: bash scripts/gogetcookie.sh - run: make depscheck diff --git a/.github/workflows/golint.yaml b/.github/workflows/golint.yaml index b4b60b445..2b02585a1 100644 --- a/.github/workflows/golint.yaml +++ b/.github/workflows/golint.yaml @@ -15,9 +15,9 @@ jobs: fail-fast: true steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: 'go.mod' - uses: golangci/golangci-lint-action@v2 with: version: 'v1.54' diff --git a/.github/workflows/thirty-two-bit.yaml b/.github/workflows/thirty-two-bit.yaml index 8f86d72f0..923abef4c 100644 --- a/.github/workflows/thirty-two-bit.yaml +++ b/.github/workflows/thirty-two-bit.yaml @@ -15,8 +15,8 @@ jobs: fail-fast: true steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: 'go.mod' - run: bash scripts/gogetcookie.sh - run: GOARCH=386 GOOS=linux go build -o 32bitbuild . diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 8589caeb3..7333bfa05 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -15,9 +15,9 @@ jobs: fail-fast: true steps: - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: 'go.mod' - run: chmod -R +x ./scripts - run: bash scripts/gogetcookie.sh - run: make test