TA-514 Add contractor jobs data per contractor endpoint #347
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 and test | |
| # This should ignore branches, that are connected with publishing artifacts and should run only on working ones. | |
| on: | |
| push: | |
| branches-ignore: | |
| - develop | |
| - 'release/**' | |
| env: | |
| JAVA_VERSION: 17 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate build number | |
| uses: einaregilsson/build-number@v3 | |
| with: | |
| token: ${{secrets.ACCESS_TOKEN}} | |
| - name: displaying build number | |
| run: echo "Build number $BUILD_NUMBER started." | |
| - name: Set up JDK version ${{env.JAVA_VERSION}} | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: ${{env.JAVA_VERSION}} | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| - name: Run maven verify | |
| run: mvn verify | |
| - run: echo " This job's status is ${{ job.status }}." | |
| liquibase_test: | |
| needs: | |
| - build | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK version ${{env.JAVA_VERSION}} | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: ${{env.JAVA_VERSION}} | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| - name: Run liquibase changelog | |
| run: | | |
| cd database | |
| mvn spring-boot:run -Dspring-boot.run.profiles=test | |
| - run: echo " This job's status is ${{ job.status }}." |