diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 18754bc2..ba2af23d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -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 @@ -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