-
Notifications
You must be signed in to change notification settings - Fork 55
35 lines (33 loc) · 985 Bytes
/
pr-build.yaml
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
name: Pull Request Validation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
lang: ['jvm', 'js', 'native']
java: ['17', '21']
env:
# Set LANG=C to simulate least-common-denominator target deployment environments:
LANG: C
name: Sjsonnet build for ${{ matrix.lang }} on JDK ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: Run mill tests for ${{ matrix.lang }}
run: ./mill _.${{ matrix.lang }}[_].test
- name: Compile with sbt
if: ${{ matrix.lang == 'jvm' }}
run: sbt compile bench/compile bench/jmh:compile
- name: Run sbt tests
if: ${{ matrix.lang == 'jvm' }}
run: sbt test