.github/workflows: run fmt and lint in CI

This commit is contained in:
paulfantom
2021-01-12 13:33:13 +01:00
parent ecbaa85d81
commit 48579a9679

View File

@@ -20,6 +20,18 @@ jobs:
with:
go-version: ${{ env.golang-version }}
- run: make --always-make generate && git diff --exit-code
lint:
runs-on: ubuntu-latest
name: Jsonnet linter
steps:
- uses: actions/checkout@v2
- run: make --always-make lint
fmt:
runs-on: ubuntu-latest
name: Jsonnet formatter
steps:
- uses: actions/checkout@v2
- run: make --always-make fmt && git diff --exit-code
unit-tests:
runs-on: ubuntu-latest
name: Unit tests