Skip to content

Add codeformat checks #3

Add codeformat checks

Add codeformat checks #3

Workflow file for this run

name: go-lint
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
lint:
strategy:
matrix:
go: [ '1.20' ]
os: [ ubuntu-latest ]
name: lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check formatting
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: '.'
gofmt-flags: '-l -d'
- name: Goimports Check
uses: DarthBenro008/goimports-check-action@v0.1.0
with:
root-path: './'