Skip to content

Commit

Permalink
ci (e2e/release): Add e2e tests requirements onto release process (#153)
Browse files Browse the repository at this point in the history
* ci (e2e/release): Add e2e tests requirements onto release process
  • Loading branch information
JPPortier authored Sep 27, 2024
1 parent c635c82 commit 15c9a19
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15c9a19

Please sign in to comment.