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