Add backend e2e tests #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: system-tests-backend | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
system-test: | |
runs-on: ubuntu-latest | |
env: | |
SENTRY_URL: http://127.0.0.1:8000 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10.5' | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@7e48093f71aa12588241894ff3695e83c4b5e4b0 # pin@v2.4.2 | |
# - name: Cache Gradle packages | |
# uses: actions/cache@v3 | |
# with: | |
# path: | | |
# ~/.gradle/caches | |
# ~/.gradle/wrapper | |
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
# restore-keys: | | |
# ${{ runner.os }}-gradle- | |
# Without this android-ndk submodule caused problems | |
# Build could probably be speed up by removing this and fixing the actual issue | |
- name: Make compile without tests | |
run: make compileWithoutTests | |
- name: Start server and run integration test for sentry-cli commands | |
run: | | |
test/system-test-sentry-server-start.sh & ./gradlew :sentry-samples:sentry-samples-spring-boot-jakarta:bootJar && test/system-test-spring-server-start.sh & test/wait-for-spring.sh && ./gradlew :sentry-samples:sentry-samples-spring-boot-jakarta:systemTest |