From 2d16ac341237931b910cb909c06913825ebdeebe Mon Sep 17 00:00:00 2001 From: Vaansh Lakhwara Date: Fri, 14 Jul 2023 20:27:10 -0400 Subject: [PATCH] feat: lint workflow --- .github/workflows/lint.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0dffc3f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches-ignore: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.20 + + - name: Install linters + run: | + go install golang.org/x/lint/golint@latest + go install github.com/client9/misspell/cmd/misspell@latest + + - name: Run linters + run: | + golint ./... + misspell -error **/*.go