Skip to content

Commit

Permalink
lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaansh committed Jul 15, 2023
1 parent d6ee83e commit 6a24692
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a24692

Please sign in to comment.