Skip to content

Commit

Permalink
add separate github action for just tests
Browse files Browse the repository at this point in the history
so we can see if something fails static analyses but passes tests, in case we want to resolve them later
  • Loading branch information
Jakobeha committed Feb 16, 2024
1 parent f70807b commit 72f130e
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
branches: ["main"]

jobs:
verify-and-artifact:
test-and-artifact:
runs-on: ubuntu-latest

steps:
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 72f130e

Please sign in to comment.