Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Merge pull request #96 from rafiramadhana/89-cmd-to-select-current-co… #148

Merge pull request #96 from rafiramadhana/89-cmd-to-select-current-co…

Merge pull request #96 from rafiramadhana/89-cmd-to-select-current-co… #148

name: Lint and Format
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Install Tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Linting
run: make lint
- name: Formatting
run: |
make fmt
git diff --exit-code