From 4eb461be6e1f7580b6c33a86c97b6ffe4edaa830 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 29 Sep 2023 13:23:56 +0200 Subject: [PATCH] github: add simple workflow --- .github/workflow/test.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflow/test.yaml diff --git a/.github/workflow/test.yaml b/.github/workflow/test.yaml new file mode 100644 index 0000000..9a510fc --- /dev/null +++ b/.github/workflow/test.yaml @@ -0,0 +1,27 @@ +name: Tests +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] +jobs: + tests: + runs-on: ubuntu-20.04 + strategy: + matrix: + goversion: + - 1.18 + - stable + steps: + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.goversion }} + - name: Checkout code + uses: actions/checkout@v3 + - name: Build + run: go build -v -mod=readonly ./... + - name: Test + run: go test -v -race -p 1 -mod=readonly ./... -args -use-mssim + - name: Go vet + run: go vet ./...