Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci (e2e/release): Add e2e tests requirements onto release process #153

Merged
merged 5 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading