From 635d4405168bb06ef5f7d2906dfc49c309e2f408 Mon Sep 17 00:00:00 2001 From: fx0x55 Date: Mon, 19 Dec 2022 18:07:47 +0800 Subject: [PATCH] chore: bump actions/setup-go from v2 to v3, actions/checkout from v2 to v3 * https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/ --- .github/workflows/makefile.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 9c633d0..d7d8d77 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -4,22 +4,18 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Setup Go environment - uses: actions/setup-go@v2.1.4 - with: - go-version: '^1.16' - - - name: Run go mod - run: make go.sum + - uses: actions/setup-go@v3 + with: + go-version: 1.18 + - uses: actions/checkout@v3.1.0 + + - name: Run go mod + run: make go.sum - - name: Install golangci-lint - run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2 + - name: Install golangci-lint + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2 - - name: Run make - run: make + - name: Run make + run: make