From f278033ddfa40dffa5e35ca8400bf207ee744580 Mon Sep 17 00:00:00 2001 From: Bo Yao Date: Wed, 14 Sep 2022 10:26:02 +0800 Subject: [PATCH] check in ci that yarn build generated files are included/updated --- .github/workflows/build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..93850a47 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build +on: push +jobs: + unit-tests: + strategy: + matrix: + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: "16" + - name: Install modules + run: yarn + - name: Run build + run: yarn build + - name: check build is included in branch + run: test -z "$(git status --porcelain)"