-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (47 loc) · 1.32 KB
/
main.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
name: main
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 11
- name: Gradle clean
run: |
./gradlew clean
- name: Gradle build
run: |
./gradlew build
- name: Gradle publish to mavenLocal
run: |
./gradlew publishToMavenLocal
- name: Run basic example
run: |
cd examples/basic
./gradlew clean --refresh-dependencies
- name: Run change file example
run: |
cd examples/change_file
./gradlew clean --refresh-dependencies
echo 'dotenv.filename=.env.staging' > gradle.properties
./gradlew clean
- name: Run change template file example
run: |
cd examples/change_template_file
./gradlew clean --refresh-dependencies
- name: Run hierarchical definitions example
run: |
cd examples/hierarchical_definitions
./gradlew clean --refresh-dependencies
- name: Upload build report
uses: actions/[email protected]
with:
name: build_reports
path: plugin/build/reports