-
Notifications
You must be signed in to change notification settings - Fork 25
39 lines (35 loc) · 967 Bytes
/
test.yml
File metadata and controls
39 lines (35 loc) · 967 Bytes
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
name: 'build-test'
on:
pull_request:
push:
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
- name: Build
shell: bash -l {0}
run: |
npm ci
test "$OSTYPE" != "msys" || npm run format
npm run all
- uses: ./
with:
root: test
extraFiles: test/foo.sh # for the ammonite version?
- run: cd test && eval "$(./cs java --env --jvm 17)" && ./mill -i __.compile && ./foo.sh
if: runner.os != 'Windows'
shell: bash
- run: cd test && eval "$(./cs java --env --jvm 17)" && cmd /c "mill.bat -i __.compile" && ./foo.sh
if: runner.os == 'Windows'
shell: bash