From ca61f372acae25bba20cf35cdd186c40e28dae03 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 6 Nov 2023 10:35:45 -0800 Subject: [PATCH] ci: add action to try to build the dist file (#850) Tries to compile the single .js file. If the command fails, then the test is marked as a failure. --- .github/workflows/ci.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b98ee89..40dad70 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,3 +33,15 @@ jobs: node-version: 20 - run: npm install - run: npm test + build-dist: + runs-on: ubuntu-latest + strategy: + matrix: + node: [18, 20] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: npm ci + - run: npm run build