diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dbf9110fc..67fd5aac7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,3 +24,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