Skip to content

Commit

Permalink
Merge pull request #2 from SWAT-engineering/chore/introduce-ci
Browse files Browse the repository at this point in the history
Enabling CI for running tests & running build
  • Loading branch information
sungshik authored Jul 9, 2024
2 parents ef02fb3 + 3519a5d commit f902f8e
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Deploy
on:
push:
branches:
- main
tags:
- 'v[0-9]+.*'
pull_request:
branches:
- main

permissions:
actions: read
contents: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: run-tests
working-directory: rascal-textmate-core
run: mvn test -B -Drascal.compile.skip -Drascal.tutor.skip

check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: check
working-directory: rascal-textmate-core
run: mvn -B compile
40 changes: 37 additions & 3 deletions rascal-textmate-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<dependency>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal</artifactId>
<version>0.34.1</version>
<version>0.40.4</version>
</dependency>

<!-- Rascal tests require JUnit 4 -->
Expand All @@ -46,7 +46,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.13.0</version>
<configuration>
<compilerArgument>-parameters</compilerArgument>
<release>11</release>
Expand All @@ -55,14 +55,48 @@
<plugin>
<groupId>org.rascalmpl</groupId>
<artifactId>rascal-maven-plugin</artifactId>
<version>0.8.2</version>
<version>0.27.5</version>
<configuration>
<errorsAsWarnings>true</errorsAsWarnings>
<bin>${project.build.outputDirectory}</bin>
<srcs>
<src>${project.basedir}/src/main/rascal</src>
</srcs>
</configuration>
<executions>
<execution> <?m2e ignore?>
<id>it-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.8.2</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.0</version>
</plugin>
</plugins>
</build>
Expand Down
3 changes: 3 additions & 0 deletions rascal-textmate.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
},
{
"path": "vscode-extension"
},
{
"path": ".github"
}
],
"settings": {
Expand Down

0 comments on commit f902f8e

Please sign in to comment.