CI #698
This file contains hidden or 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: Build | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Start docker | |
| run: docker compose -f docker-compose.test.yml up -d | |
| - name: Run test | |
| id: test | |
| run: ./gradlew test | |
| - name: Stop docker | |
| run: docker compose -f docker-compose.test.yml down | |
| - name: Run sample application test | |
| run: ./gradlew :thoth-sample:test | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v1 | |
| if: always() | |
| with: | |
| files: "**/test-results/**/*.xml" | |