|
23 | 23 | # Environment for building a release |
24 | 24 | CURRENT_BRANCH: ${TRAVIS_BRANCH} |
25 | 25 | UTPLSQL_REPO: "utPLSQL/utPLSQL" |
26 | | - UTPLSQL_BUILD_NO: ${{github.run_id}} |
| 26 | + UTPLSQL_BUILD_NO_OFFSET: 3563 |
| 27 | + UTPLSQL_BUILD_NO: $( expr ${{github.run_number}} + ${UTPLSQL_BUILD_NO_OFFSET} ) |
27 | 28 | UTPLSQL_VERSION: $(. .travis/get_project_version.sh) |
28 | 29 | UTPLSQL_BUILD_VERSION: $(. .travis/get_project_build_version.sh) |
29 | 30 | UTPLSQL_SOURCES_DIR: 'source' |
@@ -104,6 +105,17 @@ jobs: |
104 | 105 | with: |
105 | 106 | fetch-depth: 0 |
106 | 107 |
|
| 108 | + - name: Set build no |
| 109 | + run: echo "UTPLSQL_BUILD_NO=$( expr ${{github.run_number}} + ${UTPLSQL_BUILD_NO_OFFSET} )" >> $GITHUB_ENV |
| 110 | + |
| 111 | + - name: Set version |
| 112 | + run: echo "UTPLSQL_VERSION=$(. .travis/get_project_version.sh)" >> $GITHUB_ENV |
| 113 | + |
| 114 | + - name: Set version build no |
| 115 | + |
| 116 | + run: echo "UTPLSQL_BUILD_VERSION=$(. .travis/get_project_build_version.sh)" >> $GITHUB_ENV |
| 117 | + - name: Output Run numbers |
| 118 | + run: echo github.run_id is ${{ github.run_id }} github.run_number is ${{ github.run_number }} UTPLSQL_BUILD_NO is $UTPLSQL_BUILD_NO UTPLSQL_VERSION is $UTPLSQL_VERSION UTPLSQL_BUILD_VERSION is $UTPLSQL_BUILD_VERSION |
107 | 119 | # - name: Update project version & build number |
108 | 120 | # run: sh ${{ github.workspace }}/.travis/update_project_version.sh |
109 | 121 |
|
@@ -134,10 +146,11 @@ jobs: |
134 | 146 | - name: Run Tests |
135 | 147 | run: bash $(pwd)/test/run_tests.sh |
136 | 148 |
|
| 149 | + - name: Validate utPLSQL reports format |
| 150 | + run: bash .travis/validate_report_files.sh |
137 | 151 |
|
138 | | -# |
139 | | -# - name: SonarCloud Scan |
140 | | -# uses: SonarSource/sonarcloud-github-action@master |
141 | | -# env: |
142 | | -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any |
143 | | -# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
| 152 | + - name: SonarCloud Scan |
| 153 | + uses: SonarSource/sonarcloud-github-action@master |
| 154 | + env: |
| 155 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any |
| 156 | + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
0 commit comments