Skip to content

pnc-web-ui-react-e2e-tests CI #241

pnc-web-ui-react-e2e-tests CI

pnc-web-ui-react-e2e-tests CI #241

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: pnc-web-ui-react-e2e-tests CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '00 03 * * *'
- cron: '00 11 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# Each version of Node.js specified in the node-version array creates a job that runs the same steps.
# Skipped using 14.x to avoid https://github.com/npm/cli/issues/558#issuecomment-580018468
node-version: [20.x]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: node --version && npm --version
- run: npm install -g npm@^10.2.5
- run: npm --version
- run: npm ci
- run: npm run prettier-check