Skip to content

Bump @types/node from 18.11.13 to 20.5.7 in /odd-platform-ui #190

Bump @types/node from 18.11.13 to 20.5.7 in /odd-platform-ui

Bump @types/node from 18.11.13 to 20.5.7 in /odd-platform-ui #190

Workflow file for this run

name: SonarCloud Scan for frontend
on:
push:
branches:
- 'main'
pull_request_target:
types: ['opened', 'edited', 'reopened', 'synchronize']
paths:
- 'odd-platform-ui/**'
- 'build.gradle'
jobs:
images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: unfor19/install-aws-cli-action@v1
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-shared-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Node cache
uses: actions/cache@v3
with:
path: odd-platform-ui/.npm
key: ${{ runner.os }}-shared-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build with Gradle
env:
GENERATE_SOURCEMAP: false
CI: false
JAVA_OPTS: '-Xms2048m -Xmx2048m'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew -Penv=prod -p odd-platform-ui clean sonarqube --info