diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dec4f4f7..b42d303c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -54,6 +54,29 @@ jobs: run: | git checkout -b "release-${{ github.event.inputs.releaseVersion }}" + # e2e requirements + - name: Checkout sinch-sdk-mockserver repository + uses: actions/checkout@v3 + with: + repository: sinch/sinch-sdk-mockserver + token: ${{ secrets.MOCKSERVER_REPO_PAT_CI }} + fetch-depth: 0 + path: sinch-sdk-mockserver + + - name: Install Docker Compose + run: | + sudo apt-get update + sudo apt-get install -y docker-compose + + - name: Start mock servers with Docker Compose + run: | + cd sinch-sdk-mockserver + docker-compose up -d + + - name: Link to feature files + run: | + ln -s ${{ github.workspace }}/sinch-sdk-mockserver/features client/src/test/resources + - name: Release run: scripts/release.sh env: diff --git a/scripts/release.sh b/scripts/release.sh index 408e9b58..b46bc327 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -36,10 +36,9 @@ mvn --batch-mode -s settings.xml release:clean release:prepare \ -DscmReleaseCommitComment="[release] Set release & tag: $RELEASE_VERSION" \ -DscmDevelopmentCommitComment="[release] Set next version: ${NEXT_VERSION_SNAPSHOT}" || exit 1 -mvn --batch-mode -s settings.xml release:perform \ +mvn --batch-mode -s settings.xml -DskipTests=true -DskipUTs -DskipITs -Darguments=-DskipTests release:perform \ -Dusername="${GITHUB_USERNAME}" \ - -Dpassword="${GITHUB_TOKEN}" \ - -DskipTests=true || exit 1 + -Dpassword="${GITHUB_TOKEN}" || exit 1 # Update SDK.java file with next version information SDK=$(java client/resources/SDKTemplate.java "$NEXT_VERSION_DEV") && echo "$SDK" > "$SDKFILE_PATH" || exit 1