Angular 20 #1360
Workflow file for this run
This file contains hidden or 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: CI | |
on: pull_request | |
jobs: | |
test-latest: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
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: '22' | |
- name: Install dependencies | |
run: npm ci | |
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 [email protected] 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: '20.19' | |
- name: Install dependencies | |
run: npm ci | |
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 [email protected] [email protected] [email protected] [email protected] [email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] --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 |