Include app version strings in integration tests #35
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: gradle/actions/setup-gradle@v4 | |
- name: Generate tests | |
run: ./gradlew run | |
- name: Ensure output matches committed tests | |
run: | | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "Git status is not clean after running the Gradle script. Output does not match the committed tests!" | |
exit 1 | |
else | |
echo "Git status is clean. No changes detected." | |
fi | |
- name: Check lint | |
run: ./gradlew ktlintCheck |