Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

ci: add diff check action #37

Merged
merged 2 commits into from
Jul 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/diff_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "diff_check"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Diff Check here to keep the same naming style.


on: [ push,pull_request ]

jobs:
diff_check:
name: diff_check
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

runs-on: ubuntu-latest

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: "1.15"

- name: Checkout repository
uses: actions/checkout@v2

- name: Build
run: make build

- name: Git Diff
run: if [ "$(git diff | wc -l)" -gt 0 ]; then exit 1; fi