Skip to content

Commit

Permalink
Add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ammrat13 committed Nov 24, 2023
1 parent c6cf301 commit 37aeb7f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ env:

jobs:

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.QF_IDL_SOLVER_GO_VERSION }}
- name: Go Vet
run: go vet ./...
- name: Go Fmt
run: '[[ "$(gofmt -d -e . | wc -l)" -eq 0 ]]'

test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -42,7 +57,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
needs: [test]
needs: [lint, test]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 37aeb7f

Please sign in to comment.