Skip to content

Commit

Permalink
improve pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
andyollylarkin committed Aug 23, 2023
1 parent 72cad23 commit 82d8350
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ name: Go

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Test no race
run: make health_no_race
- name: Test no race
run: make health_no_race
- name: Test with race detector
run: make all_health
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ vet:
go vet ./...

test:
go test -parallel 20 -v ./...
go test -parallel 4 -v ./...

test_race:
go test ./... -short -race
Expand Down

0 comments on commit 82d8350

Please sign in to comment.