Skip to content

Bump actions/checkout from 3 to 4 #64

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #64

Workflow file for this run

# SPDX-FileCopyrightText: 2021 Wharf (Iver Sverige AB)
#
# SPDX-License-Identifier: MIT
name: Go format
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
goimports:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: true
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: checkout
uses: actions/checkout@v4
- name: Format all .go files
run:
echo "Checking files:"
find . -name '*.go' -not -path './api/**'
goimports -w $(find . -name '*.go' -not -path './api/**')
- uses: reviewdog/action-suggester@v1
with:
tool_name: goimports