refactor: removal of comments #61
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: "Development" | |
| on: | |
| push: | |
| branches: | |
| - "development" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'adopt' | |
| - name: Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven- | |
| - name: Run Tests | |
| run: mvn $MAVEN_CLI_OPTS test install | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| env: | |
| MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'adopt' | |
| - name: Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven- | |
| - name: Install DBPTK Bindings | |
| run: mvn $MAVEN_CLI_OPTS install -Dmaven.test.skip=true -Pbindings | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy to GitHub packages | |
| run: mvn $MAVEN_CLI_OPTS clean package deploy -Dmaven.test.skip=true -Pdeploy | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: artifact | |
| path: dbptk-core/target/dbptk-app-*.jar | |
| retention-days: 5 |