diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml new file mode 100644 index 0000000..919ec49 --- /dev/null +++ b/.github/workflows/pr-builder.yml @@ -0,0 +1,41 @@ +# This workflow will build the project on pull requests with tests +# 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 + + steps: + - uses: actions/checkout@v2 + - name: Set up Adopt JDK 8 + uses: actions/setup-java@v2 + with: + java-version: "8" + 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 + diff --git a/pom.xml b/pom.xml index cbf5175..d475892 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.wso2 wso2 - 1 + 1.4 org.wso2.carbon.extension.identity.authenticator @@ -277,74 +277,6 @@ - - - wso2.releases - WSO2 internal Repository - http://maven.wso2.org/nexus/content/repositories/releases/ - - true - daily - ignore - - - - wso2.snapshots - Apache Snapshot Repository - http://maven.wso2.org/nexus/content/repositories/snapshots/ - - true - daily - - - false - - - - wso2-nexus - WSO2 internal Repository - http://maven.wso2.org/nexus/content/groups/wso2-public/ - - true - daily - ignore - - - - - - wso2-nexus - WSO2 internal Repository - http://maven.wso2.org/nexus/content/groups/wso2-public/ - - true - daily - ignore - - - - wso2.releases - WSO2 internal Repository - http://maven.wso2.org/nexus/content/repositories/releases/ - - true - daily - ignore - - - - wso2.snapshots - Apache Snapshot Repository - http://maven.wso2.org/nexus/content/repositories/snapshots/ - - true - daily - - - false - - - nexus-releases