Skip to content

Commit

Permalink
splitting into different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kehoecj committed Dec 14, 2022
1 parent 723f649 commit b39716a
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on: push

jobs:

build and test:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -23,8 +23,30 @@ jobs:
- name: Check Formatting
run: if [ "$(gofmt -s -l -e . | wc -l)" -gt 0 ]; then exit 1; fi

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-w -s -extldflags "-static"' -tags netgo -o validator cmd/validator/validator.go

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Test
run: go test -v ./...


0 comments on commit b39716a

Please sign in to comment.