Skip to content

Commit

Permalink
Update the PR github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhashinee committed Jul 2, 2024
1 parent d454a7b commit 2ec36e3
Showing 1 changed file with 11 additions and 44 deletions.
55 changes: 11 additions & 44 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,14 @@
name: PR build
name: PR Build

on:
pull_request:
push:
branches-ignore:
- master
- "automated/dependency_version_update"
- "automated/dependency_version_update_tmp"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
ubuntu-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17.0.7
uses: actions/setup-java@v3
with:
distribution: "adopt"
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew build codeCoverageReport --stacktrace --scan --console=plain --no-daemon
- name: Generate Codecov Report
if: github.event_name == 'pull_request'
uses: codecov/codecov-action@v1
on: [pull_request]

windows-build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17.0.7
uses: actions/setup-java@v3
with:
distribution: "adopt"
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
run: ./gradlew.bat build --stacktrace --scan --console=plain --no-daemon
jobs:
call_workflow:
name: Run PR Build Workflow
if: ${{ github.repository_owner == 'ballerina-platform' }}
uses: ballerina-platform/ballerina-library/.github/workflows/pull-request-build-template.yml@main
secrets: inherit

0 comments on commit 2ec36e3

Please sign in to comment.