Skip to content

Commit

Permalink
Working on github CI run of the integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Sep 10, 2024
1 parent 4e2d535 commit 8e3068a
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/run-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Integration Test
on:
workflow_dispatch:
inputs:
rascal_version:
description: 'rascal branch/tag to checkout'
required: true
default: 'main'
typepal_version:
description: 'typepal branch/tag to checkout'
required: true
default: 'main'
rascal_core_version:
description: 'rascal-core branch/tag to checkout'
required: true
default: 'master'


jobs:
prepare-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: 'Checkout rascal'
with:
repository: 'usethesource/rascal'
ref: ${{ inputs.rascal_version }}
path: 'deps/rascal'
- uses: actions/checkout@v4
name: 'Checkout typepal'
with:
repository: 'usethesource/typepal'
ref: ${{ inputs.typepal_version }}
path: 'deps/typepal'
- uses: actions/checkout@v4
name: 'Checkout rascal-core'
with:
repository: 'usethesource/rascal-core'
ref: ${{ inputs.rascal_core_version }}
path: 'deps/rascal-core'

- uses: actions/upload-artifact@v4
name: 'Store dependencies for the other jobs'
with:
name: deps
path: deps/
retention-days: 1


rascal:
runs-on: buildjet-4vcpu-ubuntu-2204
needs: prepare-deps
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'

- uses: actions/download-artifact@v4
with:
name: deps

- name: Download needed rascal-jar
run: mvn validate

- run: tree

- name: Typecheck rascal
run: |
java -jar target/dependencies/rascal.jar Main \
--rascalVersion "|cwd:///deps/rascal|" \
--typepalVersion "|cwd:///deps/typepal|" \
--rascalCoreVersion "|cwd:///deps/rascal-core|" \
--repoFolder "|file:///$RUNNER_TEMP/repos|" \
--full false \
--clean \
--printWarnings \
--tests rascal
- uses: actions/upload-artifact@v4
name: Store rascal tpls
with:
name: rascal-tpls
path: $RUNNER_TEMP/repos
retention-days: 1

0 comments on commit 8e3068a

Please sign in to comment.