diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..894e2c1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 diff --git a/rascal-textmate-core/pom.xml b/rascal-textmate-core/pom.xml index 8a68220..f340b2f 100644 --- a/rascal-textmate-core/pom.xml +++ b/rascal-textmate-core/pom.xml @@ -29,7 +29,7 @@ org.rascalmpl rascal - 0.34.1 + 0.40.4 @@ -46,7 +46,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + 3.13.0 -parameters 11 @@ -55,7 +55,7 @@ org.rascalmpl rascal-maven-plugin - 0.8.2 + 0.27.5 true ${project.build.outputDirectory} @@ -63,6 +63,40 @@ ${project.basedir}/src/main/rascal + + + it-compile + compile + + compile + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.5.0 + + + enforce-maven + + enforce + + + + + 3.8.2 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.3.0 diff --git a/rascal-textmate.code-workspace b/rascal-textmate.code-workspace index a9e5a03..d629b71 100644 --- a/rascal-textmate.code-workspace +++ b/rascal-textmate.code-workspace @@ -5,6 +5,9 @@ }, { "path": "vscode-extension" + }, + { + "path": ".github" } ], "settings": {