Skip to content

Merge pull request #72 from USED255/dependabot/go_modules/github.com/… #100

Merge pull request #72 from USED255/dependabot/go_modules/github.com/…

Merge pull request #72 from USED255/dependabot/go_modules/github.com/… #100

Workflow file for this run

name: Check Go modules
on:
workflow_dispatch:
push:
branches:
- "master"
paths:
- "go.mod"
- "go.sum"
- ".github/workflows/check-mod.yml"
pull_request:
paths:
- "go.mod"
- "go.sum"
- ".github/workflows/check-mod.yml"
jobs:
check:
name: Check Go modules
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
check-latest: true
cache: true
- name: Check Go modules
run: |
go mod tidy
git diff --exit-code go.mod go.sum
go mod verify