Skip to content

W-16726901: Add delete-invalid-parant-leaf-node.py Python script (#1014) #2918

W-16726901: Add delete-invalid-parant-leaf-node.py Python script (#1014)

W-16726901: Add delete-invalid-parant-leaf-node.py Python script (#1014) #2918

Workflow file for this run

name: Java CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Log into registry
if: ${{ !contains(github.ref, 'dependabot') }}
run: echo "${{ secrets.SALESFORCE_DOCKER_HUB_SECRET }}" | docker login --username sholavanalli508 --password-stdin
- name: Build with Gradle
run: ./gradlew build --info --stacktrace
- name: Publish Failure Test Report
if: ${{ failure() }} # doesn't run unless it specifically grabs the failure condition of the previous step..
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Extract project version
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: echo "::set-env name=GRADLE_PROJECT_VERSION::`./gradlew properties|grep version |cut -c 10-`"
- name: Show project version
run: echo "$GRADLE_PROJECT_VERSION"
- name: Publish Docker container
if: ${{ !contains(github.ref, 'dependabot') }}
# run: ./gradlew -PdockerRepo=docker.pkg.github.com/${{ github.repository }}/ -x test publish --info
run: docker buildx create --driver docker-container --driver-opt='image=moby/buildkit:buildx-stable-1' --name buildbase --platform linux/arm64,linux/amd64 && ./gradlew -PdockerRepo=salesforce/ -x test publish --info
# - name: scan docker image
# if: ${{ !contains(github.ref, 'dependabot') }}
# uses: azure/container-scan@v0
# with:
# image-name: salesforce/carbonj:${{ env.GRADLE_PROJECT_VERSION }}
# severity-threshold: CRITICAL
# run-quality-checks: false