Skip to content

Fixed 'unofficial' check #26

Fixed 'unofficial' check

Fixed 'unofficial' check #26

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Wharf (Iver Sverige AB) <https://github.com/iver-wharf>
#
# SPDX-License-Identifier: MIT
name: Go format
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
goimports_diff:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: checkout
uses: actions/checkout@v2
- name: Format all .go files
run:
echo "Checking files:"
find . -name '*.go'
goimports -w $(find . -name '*.go')
- name: Git diff
run: git diff --exit-code