diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 770d35368..5a2f65ffd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,7 +15,7 @@ on: branches: ["main"] jobs: - verify-and-artifact: + test-and-artifact: runs-on: ubuntu-latest steps: @@ -30,8 +30,8 @@ jobs: uses: r-lib/actions/setup-r@v2 with: r-version: "4.3.2" - - name: Run tests and static analyses - run: mvn --batch-mode --update-snapshots verify + - name: Run tests (no static analyses) + run: mvn --batch-mode --update-snapshots test - run: mkdir staging && cp target/*.jar staging - name: Upload snapshot as artifact uses: actions/upload-artifact@v3 @@ -42,6 +42,24 @@ jobs: - name: Update dependency graph uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + verify: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: "21" + distribution: "temurin" + cache: maven + - name: Set up GNU-R + uses: r-lib/actions/setup-r@v2 + with: + r-version: "4.3.2" + - name: Run tests and static analyses + run: mvn --batch-mode --update-snapshots verify + verify-macos: runs-on: macos-latest