Skip to content

feat: apply the changes of Finschia v3.0.0-rc1 (#34) #6

feat: apply the changes of Finschia v3.0.0-rc1 (#34)

feat: apply the changes of Finschia v3.0.0-rc1 (#34) #6

Workflow file for this run

name: Check Make Format
# this workflow checks that go files is formated by `make format`
on:
pull_request:
push:
branches:
- main
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Display go version
run: go version
- uses: actions/cache@v3
id: cache
with:
path: ~/go/bin
key: ${{ runner.os }}-go-v1.20-misspell-v0.3.4-goimports-reviser-v3.4.5
- name: install misspell
if: steps.cache.outputs.cache-hit != 'true'
run: |
go install github.com/client9/misspell/cmd/misspell@v0.3.4
- name: install goimports-reviser
if: steps.cache.outputs.cache-hit != 'true'
run: |
go install github.com/incu6us/goimports-reviser/v3@v3.4.5
- name: Make Format
run: make format
- name: Check Diff
run: git diff --exit-code