Skip to content

Bump ws and puppeteer in /cli #128

Bump ws and puppeteer in /cli

Bump ws and puppeteer in /cli #128

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Build of CLI and M3-ODIN
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
PUPPETEER_SKIP_DOWNLOAD: true
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.19"
# Runs a set of commands using the runners shell
- name: Build CLI
run: |
cd ./cli
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm ci
npm run build
- name: Build Libraries
run: |
cd ./m3-odin
npm ci
npm run build:libs
- name: Zip CLI for upload
run: |
zip -q cli.zip ./cli -r
- name: Upload CLI archive
uses: actions/upload-artifact@v3
with:
name: cli-build-result
path: cli.zip
retention-days: 1
# Test of different Odin new commands
odin_new:
# Depends on successful run of Build
needs: build
runs-on: ubuntu-latest
env:
PUPPETEER_SKIP_DOWNLOAD: true
steps:
- uses: actions/setup-node@v3
with:
node-version: "18.19"
- uses: actions/download-artifact@v3
with:
name: cli-build-result
path: .
- name: Unzip CLI archive
run: unzip -q cli.zip
- name: Install Odin CLI
run: |
cd ./cli
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm install --location=global .
- name: Generate Angular soho app
run: |
odin new --angular --soho --install --skip-git app-angular-soho
cd app-angular-soho
odin build
- name: Generate Angular app
run: |
odin new --angular --install --skip-git app-angular-none
cd app-angular-none
odin build
- name: Generate basic soho app
run: |
odin new --soho --install --skip-git app-basic-soho
cd app-basic-soho
odin build
# Run all automated tests
test:
# Depends on successful run of Build
# needs: build
runs-on: ubuntu-latest
steps:
#- uses: browser-actions/setup-chrome@latest
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.19"
- name: run tests
run: |
cd ./m3-odin
npm ci
npm run ng -- test @infor-up/m3-odin --code-coverage --browsers=ChromeHeadlessCI