Skip to content

Commit

Permalink
Modify workflow tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
lochana-chathura committed Nov 21, 2024
1 parent 78fe460 commit 7ecf740
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/oom_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: TEMPORARY OOM CHECK

on:
pull_request:
branches:
- master
- nutcracker
jobs:
ubuntu_build:
name: Build with possible OOM test on Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 150
concurrency:
group: ${{ github.head_ref }}-ubuntu
cancel-in-progress: true

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21.0.3'

- name: Initialize sub-modules
run: git submodule update --init

- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ github.sha }}
restore-keys: ${{ runner.os }}-gradle

- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
export DISPLAY=':99.0'
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
./gradlew :jballerina-integration-test:test --tests "org.ballerinalang.test.identifier.IdentifierLiteralTest"
-Pnative.test --max-workers=2 --scan --no-daemon
- name: Upload heap dump
uses: actions/upload-artifact@v2
if: always()
with:
name: heap-dump
path: ./**/java_pid*.hprof
6 changes: 6 additions & 0 deletions .github/workflows/pull_request_ubuntu_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ jobs:
uses: codecov/codecov-action@v4
with:
files: ./.jacoco/reports/jacoco/report.xml
- name: Upload heap dump
uses: actions/upload-artifact@v2
if: always()
with:
name: heap-dump
path: ./**/java_pid*.hprof

sonarcloud_scan:
name: Build with sonarcloud scan on Ubuntu
Expand Down

0 comments on commit 7ecf740

Please sign in to comment.