build(deps): bump the npm_and_yarn group with 4 updates #2725
Workflow file for this run
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.actor != 'dependabot[bot]' | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install, build, and test | |
run: | | |
npm install -g npm@latest @angular/cli | |
npm ci | |
ng lint | |
ng test --watch false --browsers ChromeHeadless --code-coverage | |
ng build --configuration production --aot | |
env: | |
CI: true | |
- name: Codacy Coverage Reporter | |
uses: codacy/codacy-coverage-reporter-action@v1.3.0 | |
with: | |
api-token: ${{ secrets.CODACY_API_TOKEN }} | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Semantic Release | |
# for configuration of semantic-release, check the package.json and https://github.com/semantic-release/semantic-release/ | |
run: npx semantic-release | |
env: | |
CI: true | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
### UNCOMMENT THE FOLLOWING SECTION TO DEPLOY THE MASTER TO YOUR GITHUB USER PAGE ### | |
# | |
# deploy: | |
# needs: build | |
# runs-on: ubuntu-latest | |
# | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - name: Use Node.js 20.x | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 20.x | |
# - name: Build | |
# run: | | |
# npm install -g npm@latest @angular/cli | |
# npm ci | |
# ng build --configuration production --aot | |
# env: | |
# CI: true | |
# - name: GitHub Pages Deploy | |
# uses: crazy-max/ghaction-github-pages@v1.2.5 | |
# if: success() && github.ref == 'refs/heads/master' | |
# with: | |
# # GitHub repository where assets will be deployed (default current) | |
# repo: StegSchreck/stegschreck.github.io | |
# # Git branch where assets will be deployed | |
# target_branch: master | |
# # Create incremental commit instead of doing push force | |
# keep_history: true | |
# # Build directory to deploy | |
# build_dir: dist/browser | |
# # Write the given domain name to the CNAME file | |
# #fqdn: stegschreck.github.io | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# GITHUB_PAT: ${{ secrets.GITHUB_PAT }} |