From 7669636992dc2ecceaf00267e04461c4e96e3df6 Mon Sep 17 00:00:00 2001 From: burntcarrot Date: Wed, 14 Jul 2021 14:25:18 +0530 Subject: [PATCH] ci: add diff check action --- .github/workflows/diff-check.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/diff-check.yml diff --git a/.github/workflows/diff-check.yml b/.github/workflows/diff-check.yml new file mode 100644 index 0000000..951bb64 --- /dev/null +++ b/.github/workflows/diff-check.yml @@ -0,0 +1,23 @@ +name: "diff-check" + +on: [ push,pull_request ] + +jobs: + diff-check: + name: diff-check + 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