-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.1 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
name: Kotlin Script Test
on:
push:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
defaults:
run:
shell: bash
jobs:
kts-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest, macos-14 ]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run Kotlin Script on ${{ matrix.os }}
id: kotlin-script-exec
uses: ./
with:
script: ".github/scripts/script.main.kts"
compiler-plugin: kotlinx-serialization
# cache: true
- name: Print Kotlin install and compiler plugin path
run: |
java -version
echo "Plugin Path : ${{ steps.kotlin-script-exec.outputs.plugin-path }}"
echo "Plugin Path (Env) : $PLUGIN_PATH"
echo "Kotlin Root : ${{ steps.kotlin-script-exec.outputs.kotlin-root }}"
echo "Kotlin Root (Env) : $KOTLIN_ROOT"
- name: List all the Kotlin binaries
run: |
cd "${{ steps.kotlin-script-exec.outputs.kotlin-root }}/bin"
ls -ltrh