Skip to content

Release v4.3.1 (#41) #144

Release v4.3.1 (#41)

Release v4.3.1 (#41) #144

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.23'
- 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