Skip to content

Update sonarcloud workflow configurations #68

Update sonarcloud workflow configurations

Update sonarcloud workflow configurations #68

Workflow file for this run

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
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