Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]')) }}
Expand All @@ -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
Expand Down
90 changes: 36 additions & 54 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<plugin>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal-maven-plugin</artifactId>
<version>0.31.0</version>
<version>0.32.0-RC5</version>
<configuration>
<bin>${project.build.outputDirectory}</bin>
<srcs>
Expand Down Expand Up @@ -65,6 +65,20 @@
<goal>package</goal>
</goals>
</execution>
<execution>
<id>flybytes-test</id>
<phase>test</phase>
<configuration>
<parallel>true</parallel>
<parallelMax>10</parallelMax>
<parallelPreChecks>
<check>${project.basedir}/src/lang/flybytes/tests/MirrorTests.rsc</check>
</parallelPreChecks>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
<execution>
<id>default-cli</id>
<phase>compile</phase>
Expand All @@ -87,53 +101,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.3</version>
<executions>
<execution>
<id>test</id>
<phase>test</phase>
<configuration>
<argLine>
-ea
-Xmx2G
-Xss128m
-Dfile.encoding=UTF-8
</argLine>
<includes>
<include>**/*Tests.java</include>
</includes>
<testSourceDirectory>${basedir}/src/</testSourceDirectory>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>

</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<arguments>-Drascal.compile.skip -DskipTests -Drascal.tutor.skip</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.9.0</version>
<configuration>
<compilerArgument>-parameters</compilerArgument> <!-- make sure parameters are compiled by name into the jar -->
<release>11</release>
</configuration>
</plugin>
</plugins>
</build>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<tagNameFormat>v@{project.version}</tagNameFormat>
<arguments>-Drascal.compile.skip -DskipTests -Drascal.tutor.skip</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.9.0</version>
<configuration>
<compilerArgument>-parameters</compilerArgument> <!-- make sure parameters are compiled by name into the jar -->
<release>11</release>
</configuration>
</plugin>
</plugins>
</build>



Expand All @@ -155,15 +142,10 @@
</pluginRepositories>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
</dependency>
<dependency>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal</artifactId>
<version>0.43.0-RC1</version>
<version>0.43.0-RC11</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
Expand Down
11 changes: 0 additions & 11 deletions src/lang/flybytes/tests/RunTests.java

This file was deleted.

Loading