Skip to content

Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 #215

Bump github.com/stretchr/testify from 1.9.0 to 1.10.0

Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 #215

Workflow file for this run

# Copyright 2023 chenmingyong0423
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Format Go code
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Check
run: |
make check
if [ -n "$(git status --porcelain)" ]; then
echo >&2 "error: Please execute the command → 'make check' in the local warehouse and submit again."
exit 1
fi