Skip to content

Merge pull request #4 from ExaDev-io/main #9

Merge pull request #4 from ExaDev-io/main

Merge pull request #4 from ExaDev-io/main #9

Workflow file for this run

name: Run all demos
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [19.x, 20.x, 21.x]
package-manager: [yarn, npm]
name: Node ${{ matrix.node-version }} ${{ matrix.package-manager }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "${{ matrix.package-manager }}"
- run: ${{ matrix.package-manager }} install
- run: |
if [ "${{ matrix.package-manager }}" = "yarn" ]; then
yarn workspaces foreach -A run start
else
npm run start --workspaces --if-present
fi