-
Notifications
You must be signed in to change notification settings - Fork 68
59 lines (57 loc) · 1.74 KB
/
pr-build.yaml
File metadata and controls
59 lines (57 loc) · 1.74 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Pull Request Validation
on:
pull_request:
branches: [ master ]
jobs:
build-jvm:
runs-on: ubuntu-22.04
name: Sjsonnet jvm build
steps:
- uses: actions/checkout@v6
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'zulu'
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Cache Coursier cache
uses: coursier/cache-action@90c37294538be80a558fd665531fcdc2b467b475 # 8.1.0
- name: Check Formatting
run: ./mill "_.jvm[_].__.checkFormat"
- name: Run mill tests
timeout-minutes: 15
run: ./mill "_.jvm[_].__.test"
- name: Run sbt tests
timeout-minutes: 15
run: sbt test
- name: Run Native Image Test Suites
run: sjsonnet/test/graalvm/run_test_suites.py
build-other:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
lang: ['js', 'wasm', 'native']
name: Sjsonnet ${{ matrix.lang }} build
steps:
- uses: actions/checkout@v6
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'zulu'
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Set up Node.js 24
if: ${{ matrix.lang == 'js' || matrix.lang == 'wasm' }}
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Cache Coursier cache
uses: coursier/cache-action@90c37294538be80a558fd665531fcdc2b467b475 # 8.1.0
- name: Check Formatting
run: ./mill _.${{ matrix.lang }}[_].__.checkFormat
- name: Run mill tests for ${{ matrix.lang }}\
timeout-minutes: 15
run: ./mill _.${{ matrix.lang }}[_].__.test