* save work * fix reset styling * fix toast reducer * update non-react deps * update react libraries * remove jquery, use sanitize-html instead * add missing change * fix deps and dev deps * update workflow to target Node 16 * run @mui/codemod to remove @mui/styles * add default body font size * update react 17 to 18 * declare enum before use * add rel attr to links * fix font sizing issue * trailing commas * refactor deep destructuring Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
53 lines
979 B
YAML
53 lines
979 B
YAML
name: Build Web
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '.github/workflows/web-*.yml'
|
|
- 'webclient/**'
|
|
- '!**.md'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/web-*.yml'
|
|
- 'webclient/**'
|
|
- '!**.md'
|
|
|
|
jobs:
|
|
build-web:
|
|
name: React (Node ${{matrix.node_version}})
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: webclient
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node_version:
|
|
- 16
|
|
- lts/*
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{matrix.node_version}}
|
|
cache: 'npm'
|
|
cache-dependency-path: 'webclient/package-lock.json'
|
|
|
|
- name: Install dependencies
|
|
run: npm clean-install
|
|
|
|
- name: Build app
|
|
run: npm run build
|
|
|
|
- name: Test app
|
|
run: npm run test
|
|
|