v3.118.27 #127
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: Node CI | |
on: [ push ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.17.0 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- name: install npm | |
run: npm i -g [email protected] | |
- name: install packages | |
run: npm ci | |
- name: lint, formatting | |
run: | | |
npm run check | |
- name: run test in node | |
run: | | |
npm run build-packages | |
npm run test-ci | |
- name: install chrome | |
id: setup-chrome | |
uses: browser-actions/setup-chrome@v1 | |
with: | |
chrome-version: stable | |
- name: run test in browser | |
timeout-minutes: 3 | |
run: | | |
echo Chrome version: ${{ steps.setup-chrome.outputs.chrome-version }} | |
npm run test:app -- --no-run --browser --browser-cmd '${{ steps.setup-chrome.outputs.chrome-path }} --enable-logging=stderr --headless=new --disable-gpu' | |
- name: build web app | |
run: | | |
node webapp --disable-minify |