-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.33 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test Suite
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Instantiate JVM v22.
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'adopt'
cache: 'gradle'
# Install hatch to support the Python runtime.
- name: Setup Hatch
uses: pypa/hatch@install
# Install npm in order to support TypeScript and the Node.js runtime.
- name: Setup NPM
uses: actions/setup-node@v2
with:
node-version: '20'
# Create a JAR exposing the Orchestrator library to the individual
# processors.
- name: Create JAR
run: ./gradlew shadowJar --console=plain --warning-mode all
working-directory: ./orchestrator
# Attempt to execute the build step.
- name: Build
run: ./gradlew installDist --console=plain --warning-mode all
working-directory: ./orchestrator
# Execute test suite.
- name: Run tests
run: ./gradlew test --console=plain --warning-mode all
working-directory: ./orchestrator