chore: release 11.1.0 #130
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: angular-modal-gallery | |
on: | |
push: | |
paths-ignore: | |
- 'node_modules' | |
- 'examples/angular-cli-16/node_modules' | |
- 'examples/angular-cli-material/node_modules' | |
- 'examples/universal/node_modules' | |
jobs: | |
angular-modal-gallery: | |
name: "angular-modal-gallery" | |
timeout-minutes: 50 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Switch to a specific npm version | |
run: | | |
npm install -g npm@8 | |
npm cache verify | |
# npm prune | |
# npm update | |
- name: Installing all deps | |
run: | | |
npm ci | |
cd examples/angular-cli-16 | |
npm ci | |
cd ../.. | |
cd examples/angular-cli-material | |
npm ci | |
cd ../.. | |
cd examples/universal | |
npm ci | |
cd ../.. | |
- name: Building main web app | |
run: | | |
npm run build:all | |
npm run build:main:dev | |
npm run build:main:prod | |
- name: Building angular-cli example | |
run: | | |
cd examples/angular-cli-16 | |
npm run build:dev | |
npm run build:prod | |
cd ../.. | |
- name: Building angular-cli-material example | |
run: | | |
cd examples/angular-cli-material | |
npm run build:dev | |
npm run build:prod | |
cd ../.. | |
- name: Building universal example | |
run: | | |
cd examples/universal | |
npm run build:dev | |
npm run build:prod | |
npm run build:ssr | |
# try to run prerender script multiple times before failing | |
# n=0 | |
# until [ $n -ge 5 ] | |
# do | |
# echo "npm test with n=$n" | |
# npm run prerender && break | |
# n=$[$n+1] | |
# sleep 3 | |
# done | |
cd ../.. | |
- name: Running tests | |
run: | | |
# try to run test script multiple times before failing | |
n=0 | |
until [ $n -ge 5 ] | |
do | |
echo "npm test with n=$n" | |
npm test && break | |
n=$[$n+1] | |
sleep 3 | |
done | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: './coverage/ks89/angular-modal-gallery/lcov.info' |