Skip to content

[contrib to ng17 branch] chore: use Node 20 in GitHub Actions #451

[contrib to ng17 branch] chore: use Node 20 in GitHub Actions

[contrib to ng17 branch] chore: use Node 20 in GitHub Actions #451

name: single-spa-angular
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
# Default cache directory for both Yarn and Cypress
path: ~/.cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn --pure-lockfile
- name: Run ESLint
run: yarn lint
- name: Run Jest
run: yarn test:ci
- name: Build packages
run: yarn build
- name: Build integration apps
run: yarn build:all
- name: Run end-to-end tests via Cypress
env:
NO_UPDATE_CHECK: 1
run: yarn test:ci:integration