Add core scan tool implementation #62
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: Full Build | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
ubuntu_build: | |
name: Build | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.head_ref }}-ubuntu | |
cancel-in-progress: true | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17.0.7' | |
- name: Set Up Ballerina | |
uses: ballerina-platform/[email protected] | |
with: | |
version: latest | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew build | |
- name: Generate Jacoco report | |
run: ./gradlew createCodeCoverageReport | |
- name: Generate Codecov Report | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./.jacoco/reports/jacoco/report.xml | |
- name: Cache SonarCloud packages for faster analysis | |
uses: actions/cache@v3 | |
with: | |
path: ~/.sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: Generate SonarCloud Report | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
if: "${{ env.SONAR_TOKEN != '' }}" | |
run: ./gradlew sonar --info | |
windows_build: | |
name: Build | |
runs-on: windows-latest | |
concurrency: | |
group: ${{ github.head_ref }}-windows | |
cancel-in-progress: true | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17.0.7' | |
- name: Set Up Ballerina | |
uses: ballerina-platform/[email protected] | |
with: | |
version: '2201.8.6' | |
- name: Build with Gradle | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew build |