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