Skip to content

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 #269

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0

Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 #269

Workflow file for this run

name: Check
on:
push:
branches:
- main
pull_request:
jobs:
mocks:
name: Check if all mocks are generated properly
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20"]
steps:
- uses: actions/checkout@v2
- name: Set go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Install mockgen
run: |
go install github.com/golang/mock/[email protected]
- name: Check generated mocks
run: |
# add mockgen to PATH
export PATH=$PATH:~/go/bin
go generate ./...
if [ -n "$(git status --porcelain)" ]
then
git status --short; \
echo; \
echo "Did you remember to regenerate all sources? Run \`go generate ./...\` and commit the result."; \
exit 1; \
fi
mod:
name: Check if `go mod tidy` is ran
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20"]
steps:
- uses: actions/checkout@v2
- name: Set go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Check generated mocks
run: |
go mod tidy
if [ -n "$(git status --porcelain)" ]
then
git status --short; \
echo; \
echo "Did you remember to run `go mod tidy`? Run `go mod tidy` and commit the result."; \
exit 1; \
fi