From 1cdf36bfea581b2de00da94172637cecf4208ad6 Mon Sep 17 00:00:00 2001 From: Maxime Kjaer Date: Tue, 10 Oct 2023 11:00:27 -0700 Subject: [PATCH] test: build examples in the CI (#3856) --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2acd981914..db97ec59c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,31 @@ jobs: run: npm test env: CI: true + + build-examples: + runs-on: ubuntu-latest + timeout-minutes: 10 + + strategy: + fail-fast: false + matrix: + example: + - custom-parsers + - typescript + - webpack-build + - webpack-build-server + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Build ${{ matrix.example }} + run: | + cd examples/${{ matrix.example }} + npm install + npm run build