Corrected ci.yml #714
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: Integration Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - other/smallImprovements-AST-128958 | |
| jobs: | |
| ui-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3.5.2 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven- | |
| - name: Run UI Tests | |
| env: | |
| CX_BASE_URI: ${{ secrets.CX_BASE_URI }} | |
| CX_TENANT: ${{ secrets.CX_TENANT }} | |
| CX_APIKEY: ${{ secrets.CX_APIKEY }} | |
| CX_TEST_SCAN: ${{ secrets.CX_TEST_SCAN }} | |
| DISPLAY: :99.0 | |
| run: | | |
| Xvfb -ac :99 -screen 0 1920x1080x16 & | |
| mvn verify -Dtest.includes="**/ui/*.java" | |
| - name: Upload Coverage Report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-coverage-report | |
| path: checkmarx-ast-eclipse-plugin-tests/target/site/jacoco-aggregate | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3.5.2 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven- | |
| - name: Run Integration Tests | |
| env: | |
| CX_BASE_URI: ${{ secrets.CX_BASE_URI }} | |
| CX_TENANT: ${{ secrets.CX_TENANT }} | |
| CX_APIKEY: ${{ secrets.CX_APIKEY }} | |
| CX_TEST_SCAN: ${{ secrets.CX_TEST_SCAN }} | |
| DISPLAY: :99.0 | |
| run: | | |
| Xvfb -ac :99 -screen 0 1920x1080x16 & | |
| mvn verify -Dtest.includes="**/integration/*Test.java" | |
| - name: Upload Coverage Report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-coverage-report | |
| path: checkmarx-ast-eclipse-plugin-tests/target/site/jacoco-aggregate | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3.5.2 | |
| with: | |
| lfs: true | |
| - name: Checkout LFS objects | |
| run: git lfs checkout | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-maven- | |
| - name: Run Unit Tests with Coverage | |
| env: | |
| CX_BASE_URI: ${{ secrets.CX_BASE_URI }} | |
| CX_TENANT: ${{ secrets.CX_TENANT }} | |
| CX_APIKEY: ${{ secrets.CX_APIKEY }} | |
| CX_TEST_SCAN: ${{ secrets.CX_TEST_SCAN }} | |
| DISPLAY: :99.0 | |
| run: | | |
| Xvfb -ac :99 -screen 0 1920x1080x16 & | |
| mvn clean verify -Dtest.includes="**/unit/*Test.java" | |
| - name: Upload Coverage Report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-coverage-report | |
| path: checkmarx-ast-eclipse-plugin-tests/target/site/jacoco-aggregate | |