chore: split build and test
This commit is contained in:
parent
2dadb412db
commit
807ad16c50
1 changed files with 32 additions and 19 deletions
51
.github/workflows/default.yml
vendored
51
.github/workflows/default.yml
vendored
|
|
@ -52,11 +52,42 @@ jobs:
|
|||
- name: Build
|
||||
run: make build
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ^1.18
|
||||
cache: true
|
||||
id: go
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ^1.18
|
||||
cache: true
|
||||
id: go
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: latest
|
||||
|
||||
build-ui:
|
||||
name: Build UI
|
||||
name: UI
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -95,21 +126,3 @@ jobs:
|
|||
- name: Porcelain
|
||||
run: |
|
||||
test -z "$(git status --porcelain)" || (git status; git diff; false)
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ^1.18
|
||||
cache: true
|
||||
id: go
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue