Skip to content

Commit

Permalink
Add golang-tidy workflow.
Browse files Browse the repository at this point in the history
Signed-off-by: s3rj1k <[email protected]>
  • Loading branch information
s3rj1k committed Aug 17, 2023
1 parent 474f899 commit d01ddd0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/golang-tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go Mod Tidy Check

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read
pull-requests: read

jobs:
build:
name: Go Mod Tidy
runs-on: ubuntu-latest

steps:
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Check out source code
uses: actions/checkout@v3

- name: Tidy
run: |
make tidy check-git-clean

0 comments on commit d01ddd0

Please sign in to comment.