Add integration test #494
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: Checkmarx One Eclipse Plugin | |
| on: [pull_request] | |
| jobs: | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3.5.2 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: temurin | |
| java-version: 8 | |
| - name: Cache local Maven repository | |
| 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 }} | |
| CX_NOT_MATCH_TEST_PROJECT: ${{ secrets.CX_NOT_MATCH_TEST_PROJECT }} | |
| run: | | |
| export DISPLAY=:99.0 | |
| Xvfb -ac :99 -screen 0 1920x1080x16 & mvn clean test -Dtest=**/*IntegrationTest.java |