From 4fbd044f1d09182551cc095d51a95c36aba1f2ba Mon Sep 17 00:00:00 2001 From: Patryk Kalinowski Date: Fri, 16 Feb 2024 16:35:21 +0100 Subject: [PATCH] add Test workflow for every push to the repo --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..431ca2c1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Test + +on: + push: + branches: + - "**" + pull_request: + branches: + - "**" + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.21.x' ] + + env: + CGO_ENABLED: 0 + + steps: + - uses: actions/checkout@v3 + + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + + - name: Vet + run: go vet + + - name: Build + run: go build -v ./cmd/waas-auth + + - name: Test + run: go test -v ./...