Skip to content

Upgrade Crowd to version 5.x #47

Upgrade Crowd to version 5.x

Upgrade Crowd to version 5.x #47

name: CI Pull Requests
on:
pull_request:
branches:
- 'main'
jobs:
package:
runs-on: ubuntu-20.04
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout Code
uses: actions/checkout@v2
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: confapi-plugin-${{ hashFiles('**/pom.xml') }}
restore-keys: confapi-plugin
- name: Download Dependencies
run: ./mvnw dependency:go-offline -U -B
- name: Build with Maven
run: ./mvnw package -DskipUnitTests -B
unit-tests:
needs: package
runs-on: ubuntu-20.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout Code
uses: actions/checkout@v2
- name: Cache Maven package
uses: actions/cache@v2
with:
path: ~/.m2
key: confapi-plugin-${{ hashFiles('**/pom.xml') }}
restore-keys: confapi-plugin
- name: Run Unit Tests and analyze on SonarCloud
run: ./mvnw test sonar:sonar -B
integration-tests:
needs: package
runs-on: ubuntu-20.04
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout Code
uses: actions/checkout@v2
- name: Cache Maven package
uses: actions/cache@v2
with:
path: ~/.m2
key: confapi-plugin-${{ hashFiles('**/pom.xml') }}
restore-keys: confapi-plugin
- name: Run Integration Tests
run: ./mvnw integration-test -DskipUnitTests -B
apcc:
needs: package
runs-on: ubuntu-20.04
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout Code
uses: actions/checkout@v2
- name: Cache Maven package
uses: actions/cache@v2
with:
path: ~/.m2
key: confapi-plugin-${{ hashFiles('**/pom.xml') }}
restore-keys: confapi-plugin
- name: Download APCC
run: ./mvnw dependency:get -DgroupId=de.aservo -DartifactId=atlassian-plugin-compatibility-check -Dversion=0.0.4
- name: Copy APCC to current Directory
run: ./mvnw dependency:copy -Dartifact=de.aservo:atlassian-plugin-compatibility-check:0.0.4 -DoutputDirectory=.
- name: Run APCC
run: java -jar atlassian-plugin-compatibility-check-0.0.4.jar "crowd.version"