branches: [main]
jobs:
build:
- runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
node: ['16.x', '18.x', '20.x']
+ name: Node ${{ matrix.node }} on ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: pnpm install
- run: pnpm install
+ run: pnpm install --ignore-scripts
- name: pnpm lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
run: pnpm lint
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-dashboard:
- runs-on: ${{ matrix.os }}
- defaults:
- run:
- working-directory: ui/web
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
node: ['16.x', '18.x', '20.x']
+ name: Node ${{ matrix.node }} on ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ defaults:
+ run:
+ working-directory: ui/web
steps:
- uses: actions/checkout@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: pnpm install
- run: pnpm install
+ run: pnpm install --ignore-scripts
- name: pnpm lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
run: pnpm lint