mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 19:54:44 -07:00
Compare commits
2 commits
37d745703c
...
848b4ee2da
| Author | SHA1 | Date | |
|---|---|---|---|
| 848b4ee2da | |||
| 850105181a |
3 changed files with 13 additions and 4 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
|
@ -6,6 +6,9 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GOLANGCI_LINT_VERSION: v2.8.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -18,10 +21,16 @@ jobs:
|
||||||
go-version: '1.26'
|
go-version: '1.26'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
|
- name: Cache Go tools
|
||||||
|
uses: actions/cache@v5
|
||||||
|
with:
|
||||||
|
path: ~/go/bin
|
||||||
|
key: go-tools-${{ runner.os }}-goimports-latest-golangci-lint-${{ env.GOLANGCI_LINT_VERSION }}
|
||||||
|
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: |
|
run: |
|
||||||
go install golang.org/x/tools/cmd/goimports@latest
|
which goimports || go install golang.org/x/tools/cmd/goimports@latest
|
||||||
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0
|
which golangci-lint || go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@${{ env.GOLANGCI_LINT_VERSION }}
|
||||||
|
|
||||||
- name: Build
|
- name: Lint & Build
|
||||||
run: make all
|
run: make all
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue