Bump @angular-devkit/architect from 0.1700.0 to 0.1701.3 #58
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 and deploy | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20.x ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: | | |
npm ci | |
- name: Lint | |
run: | | |
npm run lint | |
npm run format | |
npm run stylelint | |
- name: Test | |
run: | | |
npm run test:ci | |
- name: Code Coverage Summary | |
uses: irongut/CodeCoverageSummary@v1.3.0 | |
with: | |
filename: coverage/cobertura-coverage.xml | |
badge: true | |
format: markdown | |
hide_branch_rate: false | |
hide_complexity: false | |
indicators: true | |
output: both | |
- name: Add Coverage PR Comment | |
uses: marocchino/sticky-pull-request-comment@v2 | |
if: github.event_name == 'pull_request' | |
with: | |
recreate: true | |
path: code-coverage-results.md | |
- name: Build | |
run: | | |
npm run build:prod | |
- name: Deploy | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npx angular-cli-ghpages --dir=dist/rxjs-marbles/browser --cname=rxjsmarbles.dev --no-silent --name="Ismaïl Ouazzany" --email="ouazzany.i@gmail.com" | |