Merge pull request #15 from dont-code/Development #4
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: Main Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create mongo Docker container | |
| id: build_mongo_docker | |
| uses: DigiPie/mongo-action@v2.0.1 | |
| with: | |
| image-version: latest | |
| port: 27017 | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: main | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| - name: Cache Maven repository | |
| uses: actions/cache@v4 | |
| with: | |
| path: .m2/repository # maven repository files are stored here | |
| key: ${{ runner.OS }}-maven-${{ hashFiles('pom.xml') }} | |
| - name: Override Mongo connection url | |
| uses: myci-actions/export-env-var@1 | |
| with: | |
| name: _TEST_QUARKUS_MONGODB_PROJECTS_CONNECTION_STRING | |
| value: "mongodb://localhost:27017" | |
| - name: Build | |
| run: mvn -B package --file pom.xml | |
| - uses: actions/upload-artifact@v4 | |
| # Test run screenshots only on failure | |
| if: success() | |
| with: | |
| name: project-services-runner.jar | |
| path: target/project-services-runner.jar |