Skip to content

[Snyk] Upgrade @angular/compiler from 12.0.5 to 12.2.17 #944

[Snyk] Upgrade @angular/compiler from 12.0.5 to 12.2.17

[Snyk] Upgrade @angular/compiler from 12.0.5 to 12.2.17 #944

name: Application CI
on: [push, pull_request]
jobs:
pipeline:
name: todoDemo pipeline
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]')"
timeout-minutes: 40
env:
NODE_VERSION: 14.17.1
SPRING_OUTPUT_ANSI_ENABLED: DETECT
SPRING_JPA_SHOW_SQL: false
JHI_DISABLE_WEBPACK_LOGS: true
NG_CLI_ANALYTICS: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.17.1
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11.x'
- name: Install node.js packages
run: npm install
- name: Run backend test
run: |
chmod +x mvnw
npm run ci:backend:test
- name: Run frontend test
run: npm run ci:frontend:test
- name: Analyze code with SonarQube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
if [ ! -z "$SONAR_TOKEN" ]; then
./mvnw -ntp initialize sonar:sonar -Dsonar.organization=gbloch -Dsonar.host.url=https://sonarcloud.io
else
echo No SONAR_TOKEN, skipping...
fi
- name: Package application
run: npm run java:jar:prod
- name: Deploy to Heroku
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
if [ ! -z "$HEROKU_API_KEY" ]; then
./mvnw -ntp com.heroku.sdk:heroku-maven-plugin:2.0.5:deploy -DskipTests -Pprod -Dheroku.buildpacks=heroku/jvm -Dheroku.appName=gbloch-geekle-todo
else
echo No HEROKU_API_KEY, skipping...
fi
- name: 'E2E: Package'
run: npm run ci:e2e:package
- name: 'E2E: Prepare'
run: npm run ci:e2e:prepare
- name: 'E2E: Run'
run: npm run ci:e2e:run
env:
CYPRESS_ENABLE_RECORD: true
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: 'E2E: Teardown'
run: npm run ci:e2e:teardown