Skip to content

use satisfies instead of direct type for JSONSchema #1306

use satisfies instead of direct type for JSONSchema

use satisfies instead of direct type for JSONSchema #1306

Workflow file for this run

name: CI
on: pull_request
jobs:
test-latest:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
name: Test with Angular@latest on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
# run: npm ci
run: npm install --force
env:
CI: true
- name: Build the lib
run: npm run build
- name: Run unit tests
run: npm run unit:${{ matrix.os }}
- name: Run unit tests in private mode
run: npm run unit:${{ matrix.os }}:private
- name: Run e2e tests
run: npm run e2e
if: matrix.os == 'ubuntu-latest'
test-minimum:
name: Test with Angular@17.0.0 and minimum dependencies requirements
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
# run: npm ci
run: npm install --force
env:
CI: true
- name: Build the lib (with the current version, as it is what is published on npm)
run: npm run build
- name: Downgrade dependencies to minimal required version
run: npm install typescript@5.2.2 tslib@2.5.0 rxjs@7.4.0 zone.js@0.14.0 @angular/common@17.0.0 @angular/compiler@17.0.0 @angular/core@17.0.0 @angular/platform-browser@17.0.0 @angular/router@17.0.0 @angular/cli@17.0.0 @angular/compiler-cli@17.0.0 @angular-devkit/build-angular@17.0.0 --legacy-peer-deps
env:
CI: true
- name: Run unit tests
run: npm run unit:ubuntu-latest
- name: Run unit tests in private mode
run: npm run unit:ubuntu-latest:private
- name: Run e2e tests
run: npm run e2e