-
Notifications
You must be signed in to change notification settings - Fork 60
62 lines (59 loc) · 1.57 KB
/
native-gradle-plugin.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: native-gradle-plugin
on:
push:
paths:
- 'native-gradle-plugin/**'
- 'examples/gradle/**'
- 'common/**'
pull_request:
paths:
- 'native-gradle-plugin/**'
- 'examples/gradle/**'
- 'common/**'
workflow_dispatch: [ ]
jobs:
test-native-gradle-plugin:
name:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Get GraalVM Nightly
run: |
source common/scripts/downloadGraalVM.sh
echo "$GRAALVM_HOME/bin" >> $GITHUB_PATH
echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
echo "GRAALVM_HOME=$GRAALVM_HOME" >> $GITHUB_ENV
- name: Checkstyle
run: |
pushd native-gradle-plugin
./gradlew checkstyleMain
./gradlew checkstyleTest
popd
- name: Build and publish plugin
run: |
pushd native-gradle-plugin
./gradlew publishToMavenLocal
popd
- name: Build and publish junit-platform-native feature
run: |
pushd common/junit-platform-native/
./gradlew publishToMavenLocal
popd
- name: Plugin test (build native)
run: |
pushd examples/gradle
echo "JVM run"
./gradlew run
echo "Native run"
./gradlew nativeRun
popd
- name: Plugin test (test native)
run: |
pushd examples/gradle
./gradlew clean test
./gradlew nativeTest
popd