summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 066322b58..aa6bfb1e4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -63,3 +63,25 @@ jobs:
- name: Build darwin binary
run: |
GOOS=darwin go build
+ check-cheatsheet:
+ runs-on: ubuntu-latest
+ env:
+ GOFLAGS: -mod=vendor
+ GOARCH: amd64
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Setup Go
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.16.x
+ - name: Cache build
+ uses: actions/cache@v1
+ with:
+ path: ~/.cache/go-build
+ key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-build
+ restore-keys: |
+ ${{runner.os}}-go-
+ - name: Check Cheatsheet
+ run: |
+ go run scripts/cheatsheet/main.go check