Support scanning workspaces #352
Workflow file for this run
This file contains hidden or 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 on Ubuntu with tests | |
| 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 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21.0.6' | |
| - name: Set Up Ballerina | |
| uses: ballerina-platform/setup-ballerina@v1.1.1 | |
| with: | |
| version: 2201.13.0 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| env: | |
| packageUser: ${{ github.actor }} | |
| packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
| run: unset BALLERINA_HOME && ./gradlew build --scan | |
| - 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 on Windows with tests | |
| 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 21 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21.0.6' | |
| - name: Set Up Ballerina | |
| uses: ballerina-platform/setup-ballerina@v1.1.1 | |
| with: | |
| version: 2201.13.0 | |
| - name: Build with Gradle | |
| env: | |
| packageUser: ${{ github.actor }} | |
| packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
| run: Remove-Item Env:BALLERINA_HOME -ErrorAction SilentlyContinue; ./gradlew build --scan |