From 9b8c2b74ca1303b1e0aac03f90bc2eeeba0a3673 Mon Sep 17 00:00:00 2001 From: fabiante Date: Wed, 27 Dec 2023 14:04:16 +0100 Subject: [PATCH] Add CI --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..afe59da --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + + - name: Build + run: go build -v ./... + + - name: Install Test Runner + run: go install github.com/mfridman/tparse@latest + - name: Test + run: set -o pipefail && go test -json -v ./... | tparse -all + + - name: Lint + run: go vet -v ./...