diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6d0663a7..7cdba378 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,3 +12,24 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} version: latest args: --check . + + go: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.22 + - name: Check formatting + run: go fmt ./... + working-directory: ./tests/go + - name: Check linting + run: go vet ./... + working-directory: ./tests/go + - name: Check golines + run: | + go install -u github.com/segmentio/golines + golines -w . + working-directory: ./tests/go