summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-04 10:46:14 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 11:12:04 +1100
commite8a1a4ffc0ab0e10ee0ad43042dd5a2fd2438353 (patch)
tree6f645fc04e22ba08f10010cbec0ef3d27a670311 /.github/workflows/ci.yml
parent8e66d2761ee6580981d6d465e9d970c6a80d3e65 (diff)
add cheatsheet check script
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