Skip to content

chore(deps): bump the go-modules group with 2 updates #56

chore(deps): bump the go-modules group with 2 updates

chore(deps): bump the go-modules group with 2 updates #56

Workflow file for this run

name: Format gvm-openapi-emulator
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
name: Run format (fail on changes)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Cache Go modules
uses: actions/cache@v6
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Cache Docker layers
uses: actions/cache@v6
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Run Go formatter
run: make format
- name: Check for diffs after formatting
run: |
echo "Checking for unformatted files..."
if ! git diff --quiet; then
echo " Formatting required. Please run 'make format' locally."
echo "Changed files:"
git --no-pager diff --name-only
exit 1
fi