From 72e65c86cd35305a4d7f3fe6234eaae54e682941 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Wed, 8 May 2024 09:01:39 +0200 Subject: [PATCH] add build action --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..bb133a6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Go + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + go-version: ['1.22.1'] + + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: Display Go version + run: go version + - name: Install dependencies + run: go mod download + - name: Vet + run: go vet -v + - name: Test + run: go test -v + - name: Build + run: go build -v