Skip to content

Commit

Permalink
ci: fix format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
loloicci committed Sep 11, 2023
1 parent 85847d5 commit d481494
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
- main

jobs:
install-tools:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with: go-version 1.18
with:
go-version: 1.18
- name: Display go version
run: go version
- name: install tools
Expand All @@ -22,18 +24,7 @@ jobs:
with:
path: ${GOPATH}/bin
key: ${{ runner.os }}-misspell-v0.3.4-goimports-reviser-v3.4.5

check-format:
runs-on: ubuntu-latest
needs: install-tools
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.18
- name: Display go version
run: go version
- name: Make Format
run: |
make format &&
git diff --exit-code
run: make format
- name: Check Diff
run: git diff --exit-code

0 comments on commit d481494

Please sign in to comment.