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 ./...