build(deps-dev): bump webpack from 5.76.0 to 5.94.0 #1263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-11, windows-2019] | |
node: [16, 18] | |
name: ${{ matrix.os }} and node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Download testing data | |
shell: bash | |
run: | | |
curl -OL https://github.com/Kitware/itk-vtk-viewer/releases/download/v14.35.1/itk-vtk-viewer-testing-data.tar.gz | |
tar xvzf ./itk-vtk-viewer-testing-data.tar.gz -C test/ | |
- name: Build | |
run: npm run build | |
- name: Test | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
npm run test:downloadData | |
# Allow writing test/output.html | |
sudo chmod -R 777 test | |
# To debug, run `./test/run.sh -d` | |
npm run test:headless | |
- uses: ashley-taylor/[email protected] | |
if: ${{ always() && runner.os == 'ubuntu-18.04' }} | |
with: | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
path: 'test/TESTS-*.xml' | |
- uses: actions/upload-artifact@v1 | |
if: ${{ always() && runner.os == 'ubuntu-18.04' }} | |
with: | |
name: 'Node${{ matrix.node}}TestOutput' | |
path: test/output.html |