chore(update): major release 18.0.0 💥 #409
This file contains 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: Build & run all tests | |
on: [push] | |
jobs: | |
test: | |
environment: develop | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js 20 | |
uses: actions/setup-node@master | |
with: | |
node-version: 20 | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies # Install all deps | |
run: yarn | |
- name: Sync versions # Sync versions | |
run: yarn syncprojects | |
- name: Build ngx-scrolltop # Build | |
run: yarn build --configuration production | |
- name: Build Schematics # Build Schematics and move | |
run: yarn build:schematics | |
- name: Build demo # Build demo page | |
run: yarn build:demo | |
- name: Run tests # Build Schematics and move | |
run: yarn test --configuration=ci |