Add job to run the build script in CI

This commit is contained in:
Tim Schaub
2021-04-26 09:11:37 -06:00
parent 70ac379dcc
commit c01db37ff4

View File

@@ -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 }}