Skip to content

chore(deploy): set environments #371

chore(deploy): set environments

chore(deploy): set environments #371

Workflow file for this run

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