Skip to content

Commit

Permalink
Add go unit testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett committed Aug 13, 2022
1 parent 4f19ecb commit dae0292
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Unit tests

on:
push:
branches:
- master
pull_request:

jobs:
test-go:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18', '1.19' ]
name: Go ${{ matrix.go }} tests
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true
- name: Run go test
run: go test -v ./...

0 comments on commit dae0292

Please sign in to comment.