From 1dcd83f272d26d8f1d319a98a8267f4e7cd1316d Mon Sep 17 00:00:00 2001 From: Josef Vyhnanek Date: Thu, 30 Jan 2025 18:21:06 +0100 Subject: [PATCH] Added style job to GH Workflow --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a755c53de..7c36ea0cdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,22 @@ on: branches: [main] jobs: + style: + name: Tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.23.0" + + - name: Style + run: test -z $(go fmt ./...) + tests: name: Tests runs-on: ubuntu-latest @@ -18,6 +34,6 @@ jobs: with: go-version: "1.23.0" - - name: Force Failure + - name: Tests & Code coverage run: go test --cover ./...