Skip to content

Commit

Permalink
Add github actions workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Sep 30, 2022
1 parent b24f5cb commit 23e5822
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test
on: [push, pull_request]

permissions:
contents: read

jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: Test
run: go test -v ./...
25 changes: 25 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: validate
on: [push, pull_request]

permissions:
contents: read

jobs:
linters:
strategy:
matrix:
go-version: [1.19.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49
# TODO use --out-format=junit-xml and store artifacts
args: --print-resources-usage --timeout=10m --verbose
2 changes: 1 addition & 1 deletion publisher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestPubSubRace(t *testing.T) {
}
})
for _, s := range subs {
s.Wait()
_ = s.Wait()
}
}

Expand Down

0 comments on commit 23e5822

Please sign in to comment.