Split CI jobs
This commit is contained in:
parent
a112473d0f
commit
5627630145
21
.github/workflows/main.yml
vendored
21
.github/workflows/main.yml
vendored
|
@ -7,7 +7,6 @@ on:
|
|||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -21,8 +20,28 @@ jobs:
|
|||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22'
|
||||
|
||||
- name: Format
|
||||
run: diff -u <(echo -n) <(gofmt -d ./)
|
||||
|
|
Loading…
Reference in a new issue