Skip to content

Modify URL resolve logic #107

Modify URL resolve logic

Modify URL resolve logic #107

Workflow file for this run

name: SonarCloud analysis
on:
push:
branches:
- main
- 'f/*'
pull_request:
types: [ opened, synchronize, reopened ]
workflow_dispatch:
inputs:
branch:
description: 'Branch to analysis'
required: true
default: main
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
ref: ${{ github.event.inputs.branch || github.ref }}
- name: Set up JDK
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: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonar --info