Skip to content

[WSO2 Release] [Jenkins #243] [Release 1.2.35] prepare for next devel… #246

[WSO2 Release] [Jenkins #243] [Release 1.2.35] prepare for next devel…

[WSO2 Release] [Jenkins #243] [Release 1.2.35] prepare for next devel… #246

Workflow file for this run

# This workflow will build the project on pull requests with tests

Check failure on line 1 in .github/workflows/pr-builder.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-builder.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
# Uses:
# OS: ubuntu-latest
# JDK: Adopt JDK 8
name: PR Builder
on:
pull_request:
branches: [main, master]
workflow_dispatch:
env:
MAVEN_OPTS: -Xmx4g -Xms1g
jobs:
build:
runs-on: ubuntu-latest
env:
JAVA_TOOL_OPTIONS: "-Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true"
steps:
- uses: actions/checkout@v2
- name: Set up Adopt JDK 11
uses: actions/setup-java@v2
with:
java-version: [ 11.0.19+7 ]
distribution: "adopt"
- name: Cache local Maven repository
id: cache-maven-m2
uses: actions/cache@v2
env:
cache-name: cache-m2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ env.cache-name }}-
${{ runner.os }}-maven-
${{ runner.os }}-
- name: Build with Maven
run: mvn clean install -U -B
- name: Delete SNAPSHOT artifacts
run: find ~/.m2/repository/ -name "*-SNAPSHOT" -type d -print -prune -exec rm -r {} +