diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 942d6a54c2..e187a19b8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,6 +92,46 @@ jobs: - name: Run Tests run: npm run test-spec + build: + name: Build (Node ${{ matrix.node }} / ${{ matrix.os }}) + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + node: + - 14 + + steps: + - name: Clone Repository + uses: actions/checkout@v2 + + - name: Set Node.js Version + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - name: Determine Cache Directory + id: npm-cache + run: | + echo "::set-output name=dir::$(npm config get cache)" + + - name: Configure Job Cache + uses: actions/cache@v1 + with: + path: ${{ steps.npm-cache.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install Dependencies + run: npm ci + + - name: Run Tests + run: npm run build-package + rendering: name: Rendering (Node ${{ matrix.node }} / ${{ matrix.os }}) runs-on: ${{ matrix.os }}