diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 09:38:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-19 12:12:57 +1100 |
commit | a34bdf1a046c90c22a1c0b653241b8107e89c7f9 (patch) | |
tree | 4de55d492803487a6575c976f89875744a7d3b7b /.github | |
parent | d93fef4c61db20dd9e2bb535c2fbb742cdbed60a (diff) |
update linters
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/automerge.yml | 2 | ||||
-rw-r--r-- | .github/workflows/cd.yml | 2 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 26 |
3 files changed, 23 insertions, 7 deletions
diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 4eaff9686..36d301e59 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -25,4 +25,4 @@ jobs: uses: "pascalgn/automerge-action@135f0bdb927d9807b5446f7ca9ecc2c51de03c4a" env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - MERGE_METHOD: rebase
\ No newline at end of file + MERGE_METHOD: rebase diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a07cf1154..8e720d96b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.16.x + go-version: 1.18.x - name: Run goreleaser uses: goreleaser/goreleaser-action@v1 env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2176fef97..f933ddb1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: Continuous Integration +env: + GO_VERSION: 1.18 + on: push: branches: @@ -24,7 +27,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.16.x + go-version: 1.18.x - name: Cache build uses: actions/cache@v1 with: @@ -46,7 +49,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.16.x + go-version: 1.18.x - name: Cache build uses: actions/cache@v1 with: @@ -74,7 +77,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.16.x + go-version: 1.18.x - name: Cache build uses: actions/cache@v1 with: @@ -87,11 +90,24 @@ jobs: go run scripts/cheatsheet/main.go check lint: runs-on: ubuntu-latest + env: + GOFLAGS: -mod=vendor steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v1 + with: + go-version: 1.18.x + - name: Cache build + uses: actions/cache@v1 + with: + path: ~/.cache/go-build + key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test + restore-keys: | + ${{runner.os}}-go- - name: Lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3.1.0 with: version: latest - name: Format code |