chore(deps): bump systeminformation from 5.21.24 to 5.23.14 #3017
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: Lodex CI | |
# Run this ci only on pull request who targets master and on master branch only | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
# Job use to create the test environment and run unit test suite | |
test-unit: | |
runs-on: ubuntu-20.04 | |
# Set a timeout of 10 mins | |
timeout-minutes: 10 | |
# Create a strategy matrix uses to test multiple versions of node | |
strategy: | |
fail-fast: false | |
matrix: | |
# See https://github.com/nodejs/Release | |
node-version: [ 18.x ] | |
steps: | |
# Pull repository content | |
- uses: actions/checkout@v4 | |
# Setup NodeJS | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
# Install project dependencies (equivalent to make install) | |
- run: make copy-conf | |
- run: npm ci --legacy-peer-deps | |
# Run unit test suite | |
- run: npm run test:unit | |
# Job use to create the test environment and run api e2e test suite | |
test-api-e2e: | |
runs-on: ubuntu-20.04 | |
# Set a timeout of 10 mins | |
timeout-minutes: 10 | |
# Create a strategy matrix uses to test multiple versions of node | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [ 18.x ] | |
steps: | |
# Pull repository content | |
- uses: actions/checkout@v4 | |
# Setup NodeJS | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
# Install project dependencies (equivalent to make install) | |
- run: make copy-conf | |
- run: npm ci --legacy-peer-deps | |
# Run api e2e test suite | |
- run: make test-api-e2e | |
# Job use to create the test environment and run e2e test suite | |
test-e2e: | |
runs-on: ubuntu-20.04 | |
# Set a timeout of 30 mins | |
timeout-minutes: 30 | |
# Create a strategy matrix uses to test multiple versions of node and multiple subset tests | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [ 18.x ] | |
test-phase: [ 'phase:one', 'phase:two', 'phase:three', 'phase:four' ] | |
# Use this line to ignore the phase system | |
# test-phase: [ 'all' ] | |
steps: | |
# Pull repository content | |
- uses: actions/checkout@v4 | |
# Setup NodeJS | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
# Install project dependencies (equivalent to make install) | |
- run: make copy-conf | |
- run: npm ci --legacy-peer-deps | |
# Start e2e environment | |
- run: make test-e2e-start-dockers | |
# Wait for the e2e environment to start and then run e2e subset tests suite | |
- run: ./bin/wait-for -t 60 localhost:3000 | |
- run: npm run test:e2e:${{ matrix.test-phase }} | |
# Stop e2e environment | |
- run: make test-e2e-stop-dockers | |
# Upload debug screenshots on failure | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |