From 1b7cb8c9cb7ecdced017fdd6786afe42347b8da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20L=2E=20Hansen?= Date: Thu, 1 Sep 2022 14:07:37 -0700 Subject: [PATCH] Add a check for up-to-date bundle --- .github/workflows/main.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6e9de21..23f5ef7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -7,6 +7,25 @@ on: jobs: + bundle-up-to-date: + runs-on: "ubuntu-latest" + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-go@v3 + with: + go-version: 1.19 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: "make clean" + - run: "make assets" + - name: "Make sure gotty.js bundle is up-to-date" + run: "diffsize=$(git diff bindata/static/js/gotty.js | wc -l); test $diffsize == 0" + + build-test: runs-on: "ubuntu-latest"