diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c85e1b4..8fda0f2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,6 +9,9 @@ on: branches: - main +env: + MAVEN_OPTS: "-Xmx4G -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true" + jobs: builds: if: ${{ !(github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[maven-release-plugin]')) }} @@ -24,7 +27,22 @@ jobs: cache: 'maven' - name: Test with Maven - run: mvn -B --update-snapshots compile test + run: mvn -B --update-snapshots compile test -Drascal.compile.skip -Drascal.tutor.skip # watch remove before merge + + - name: Publish Test Reports + if: ${{ !cancelled() }} + uses: ctrf-io/github-test-reporter@v1 + with: + report-path: 'target/surefire-reports/*.xml' + github-report: true + summary-delta-report: true + insights-report: true + flaky-rate-report: true + fail-rate-report: true + slowest-report: true + upload-artifact: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Attach artifact id: build-artifact diff --git a/pom.xml b/pom.xml index 0bbdb7f..61bf8e8 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ org.rascalmpl rascal-maven-plugin - 0.31.0 + 0.32.0-RC5 ${project.build.outputDirectory} @@ -65,6 +65,20 @@ package + + flybytes-test + test + + true + 10 + + ${project.basedir}/src/lang/flybytes/tests/MirrorTests.rsc + + + + test + + default-cli compile @@ -87,53 +101,26 @@ - - org.apache.maven.plugins - maven-surefire-plugin - 3.5.3 - - - test - test - - - -ea - -Xmx2G - -Xss128m - -Dfile.encoding=UTF-8 - - - **/*Tests.java - - ${basedir}/src/ - - - test - - - - - - - org.apache.maven.plugins - maven-release-plugin - 3.1.1 - - v@{project.version} - -Drascal.compile.skip -DskipTests -Drascal.tutor.skip - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.9.0 - - -parameters - 11 - - - - + + org.apache.maven.plugins + maven-release-plugin + 3.1.1 + + v@{project.version} + -Drascal.compile.skip -DskipTests -Drascal.tutor.skip + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.9.0 + + -parameters + 11 + + + + @@ -155,15 +142,10 @@ - - junit - junit - 4.13.1 - org.rascalmpl rascal - 0.43.0-RC1 + 0.43.0-RC11 org.ow2.asm diff --git a/src/lang/flybytes/tests/RunTests.java b/src/lang/flybytes/tests/RunTests.java deleted file mode 100644 index de2fd47..0000000 --- a/src/lang/flybytes/tests/RunTests.java +++ /dev/null @@ -1,11 +0,0 @@ -package lang.flybytes.tests; - -import org.junit.runner.RunWith; -import org.rascalmpl.test.infrastructure.RascalJUnitTestPrefix; -import org.rascalmpl.test.infrastructure.RascalJUnitTestRunner; - -@RunWith(RascalJUnitTestRunner.class) -@RascalJUnitTestPrefix("lang::flybytes::tests") -public class RunTests { - -}