Skip to content

build: update node.js.yml #10

build: update node.js.yml

build: update node.js.yml #10

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
ui-chrome-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node info
run: node -v
- run: npm ci
- run: npm run build
- run: ncp dist/ examples/dist/
- run: http-server examples -p 2222 -c-1 --silent --cors
- run: http-server tests/mocks -p 8181 -c-1 --silent --cors
- run: cypress:headless