Skip to content

Commit 84c7dfe

Browse files
author
Your Name
committed
testng
1 parent 7679f39 commit 84c7dfe

File tree

4 files changed

+328
-1
lines changed

4 files changed

+328
-1
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
2+
name: "junit-jupiter Kotlin ubuntu Building Java Applications CI workflow"
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
schedule:
10+
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
11+
12+
jobs:
13+
14+
15+
junit-jupiter-kotlin-java-gradle-ubuntu-latest:
16+
name: "Building Java Applications Sample Kotlin junit-jupiter"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v1
21+
- name: "osfingerprinting"
22+
run: |
23+
echo "===================================================================================="
24+
hostnamectl status
25+
echo "===================================================================================="
26+
echo " \ ^__^ "
27+
echo " \ (oo)\_______ "
28+
echo " (__)\ )\/\ "
29+
echo " ||----w | "
30+
echo " || || "
31+
echo "===================================================================================="
32+
- name: "Building Java Applications Sample Kotlin junit-jupiter"
33+
run: |
34+
mkdir demo && cd demo
35+
# gradle init --project-name demo --type java-application --dsl kotlin
36+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework junit-jupiter
37+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
38+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
39+
echo "==================Run the application=================================================================="
40+
./gradlew run
41+
echo "==================Bundle the application=================================================================="
42+
./gradlew build
43+
echo "==================Publish a Build Scan=================================================================="
44+
./gradlew build --scan
45+
cat app/build.gradle.kts
46+
47+
junit-jupiter-kotlin-java-gradle-ubuntu-2004:
48+
name: "Building Java Applications Sample Kotlin junit-jupiter"
49+
runs-on: ubuntu-20.04
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v1
53+
- name: "osfingerprinting"
54+
run: |
55+
echo "===================================================================================="
56+
hostnamectl status
57+
echo "===================================================================================="
58+
echo " \ ^__^ "
59+
echo " \ (oo)\_______ "
60+
echo " (__)\ )\/\ "
61+
echo " ||----w | "
62+
echo " || || "
63+
echo "===================================================================================="
64+
- name: "Building Java Applications Sample Kotlin junit-jupiter"
65+
run: |
66+
mkdir demo && cd demo
67+
# gradle init --project-name demo --type java-application --dsl kotlin
68+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework junit-jupiter
69+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
70+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
71+
echo "==================Run the application=================================================================="
72+
./gradlew run
73+
echo "==================Bundle the application=================================================================="
74+
./gradlew build
75+
echo "==================Publish a Build Scan=================================================================="
76+
./gradlew build --scan
77+
cat app/build.gradle.kts
78+
79+
junit-jupiter-kotlin-java-gradle-ubuntu-1804:
80+
name: "Building Java Applications Sample Kotlin junit-jupiter"
81+
runs-on: ubuntu-18.04
82+
steps:
83+
- name: Checkout
84+
uses: actions/checkout@v1
85+
- name: "osfingerprinting"
86+
run: |
87+
echo "===================================================================================="
88+
hostnamectl status
89+
echo "===================================================================================="
90+
echo " \ ^__^ "
91+
echo " \ (oo)\_______ "
92+
echo " (__)\ )\/\ "
93+
echo " ||----w | "
94+
echo " || || "
95+
echo "===================================================================================="
96+
- name: "Building Java Applications Sample Kotlin junit-jupiter"
97+
run: |
98+
mkdir demo && cd demo
99+
# gradle init --project-name demo --type java-application --dsl kotlin
100+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework junit-jupiter
101+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
102+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
103+
echo "==================Run the application=================================================================="
104+
./gradlew run
105+
echo "==================Bundle the application=================================================================="
106+
./gradlew build
107+
echo "==================Publish a Build Scan=================================================================="
108+
./gradlew build --scan
109+
cat app/build.gradle.kts

.github/workflows/spock-wf.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
2+
name: "spock Kotlin ubuntu Building Java Applications CI workflow"
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
schedule:
10+
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
11+
12+
jobs:
13+
14+
15+
spock-kotlin-java-gradle-ubuntu-latest:
16+
name: "Building Java Applications Sample Kotlin spock"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v1
21+
- name: "osfingerprinting"
22+
run: |
23+
echo "===================================================================================="
24+
hostnamectl status
25+
echo "===================================================================================="
26+
echo " \ ^__^ "
27+
echo " \ (oo)\_______ "
28+
echo " (__)\ )\/\ "
29+
echo " ||----w | "
30+
echo " || || "
31+
echo "===================================================================================="
32+
- name: "Building Java Applications Sample Kotlin spock"
33+
run: |
34+
mkdir demo && cd demo
35+
# gradle init --project-name demo --type java-application --dsl kotlin
36+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
37+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
38+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
39+
echo "==================Run the application=================================================================="
40+
./gradlew run
41+
echo "==================Bundle the application=================================================================="
42+
./gradlew build
43+
echo "==================Publish a Build Scan=================================================================="
44+
./gradlew build --scan
45+
cat app/build.gradle.kts
46+
47+
spock-kotlin-java-gradle-ubuntu-2004:
48+
name: "Building Java Applications Sample Kotlin spock"
49+
runs-on: ubuntu-20.04
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v1
53+
- name: "osfingerprinting"
54+
run: |
55+
echo "===================================================================================="
56+
hostnamectl status
57+
echo "===================================================================================="
58+
echo " \ ^__^ "
59+
echo " \ (oo)\_______ "
60+
echo " (__)\ )\/\ "
61+
echo " ||----w | "
62+
echo " || || "
63+
echo "===================================================================================="
64+
- name: "Building Java Applications Sample Kotlin spock"
65+
run: |
66+
mkdir demo && cd demo
67+
# gradle init --project-name demo --type java-application --dsl kotlin
68+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
69+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
70+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
71+
echo "==================Run the application=================================================================="
72+
./gradlew run
73+
echo "==================Bundle the application=================================================================="
74+
./gradlew build
75+
echo "==================Publish a Build Scan=================================================================="
76+
./gradlew build --scan
77+
cat app/build.gradle.kts
78+
79+
spock-kotlin-java-gradle-ubuntu-1804:
80+
name: "Building Java Applications Sample Kotlin spock"
81+
runs-on: ubuntu-18.04
82+
steps:
83+
- name: Checkout
84+
uses: actions/checkout@v1
85+
- name: "osfingerprinting"
86+
run: |
87+
echo "===================================================================================="
88+
hostnamectl status
89+
echo "===================================================================================="
90+
echo " \ ^__^ "
91+
echo " \ (oo)\_______ "
92+
echo " (__)\ )\/\ "
93+
echo " ||----w | "
94+
echo " || || "
95+
echo "===================================================================================="
96+
- name: "Building Java Applications Sample Kotlin spock"
97+
run: |
98+
mkdir demo && cd demo
99+
# gradle init --project-name demo --type java-application --dsl kotlin
100+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
101+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework spock
102+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
103+
echo "==================Run the application=================================================================="
104+
./gradlew run
105+
echo "==================Bundle the application=================================================================="
106+
./gradlew build
107+
echo "==================Publish a Build Scan=================================================================="
108+
./gradlew build --scan
109+
cat app/build.gradle.kts

.github/workflows/testng-wf.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
2+
name: "testng Kotlin ubuntu Building Java Applications CI workflow"
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
schedule:
10+
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
11+
12+
jobs:
13+
14+
15+
testng-kotlin-java-gradle-ubuntu-latest:
16+
name: "Building Java Applications Sample Kotlin testng"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v1
21+
- name: "osfingerprinting"
22+
run: |
23+
echo "===================================================================================="
24+
hostnamectl status
25+
echo "===================================================================================="
26+
echo " \ ^__^ "
27+
echo " \ (oo)\_______ "
28+
echo " (__)\ )\/\ "
29+
echo " ||----w | "
30+
echo " || || "
31+
echo "===================================================================================="
32+
- name: "Building Java Applications Sample Kotlin testng"
33+
run: |
34+
mkdir demo && cd demo
35+
# gradle init --project-name demo --type java-application --dsl kotlin
36+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
37+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
38+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
39+
echo "==================Run the application=================================================================="
40+
./gradlew run
41+
echo "==================Bundle the application=================================================================="
42+
./gradlew build
43+
echo "==================Publish a Build Scan=================================================================="
44+
./gradlew build --scan
45+
cat app/build.gradle.kts
46+
47+
testng-kotlin-java-gradle-ubuntu-2004:
48+
name: "Building Java Applications Sample Kotlin testng"
49+
runs-on: ubuntu-20.04
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v1
53+
- name: "osfingerprinting"
54+
run: |
55+
echo "===================================================================================="
56+
hostnamectl status
57+
echo "===================================================================================="
58+
echo " \ ^__^ "
59+
echo " \ (oo)\_______ "
60+
echo " (__)\ )\/\ "
61+
echo " ||----w | "
62+
echo " || || "
63+
echo "===================================================================================="
64+
- name: "Building Java Applications Sample Kotlin testng"
65+
run: |
66+
mkdir demo && cd demo
67+
# gradle init --project-name demo --type java-application --dsl kotlin
68+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
69+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
70+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
71+
echo "==================Run the application=================================================================="
72+
./gradlew run
73+
echo "==================Bundle the application=================================================================="
74+
./gradlew build
75+
echo "==================Publish a Build Scan=================================================================="
76+
./gradlew build --scan
77+
cat app/build.gradle.kts
78+
79+
testng-kotlin-java-gradle-ubuntu-1804:
80+
name: "Building Java Applications Sample Kotlin testng"
81+
runs-on: ubuntu-18.04
82+
steps:
83+
- name: Checkout
84+
uses: actions/checkout@v1
85+
- name: "osfingerprinting"
86+
run: |
87+
echo "===================================================================================="
88+
hostnamectl status
89+
echo "===================================================================================="
90+
echo " \ ^__^ "
91+
echo " \ (oo)\_______ "
92+
echo " (__)\ )\/\ "
93+
echo " ||----w | "
94+
echo " || || "
95+
echo "===================================================================================="
96+
- name: "Building Java Applications Sample Kotlin testng"
97+
run: |
98+
mkdir demo && cd demo
99+
# gradle init --project-name demo --type java-application --dsl kotlin
100+
gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
101+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
102+
# gradle init --project-name demo --type java-application --dsl kotlin --test-framework testng
103+
echo "==================Run the application=================================================================="
104+
./gradlew run
105+
echo "==================Bundle the application=================================================================="
106+
./gradlew build
107+
echo "==================Publish a Build Scan=================================================================="
108+
./gradlew build --scan
109+
cat app/build.gradle.kts

0 commit comments

Comments
 (0)