Skip to content

Commit af273c3

Browse files
authored
Merge pull request #12 from Kruemmelspalter/automated_builds
2 parents 6b37012 + f24f600 commit af273c3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/onpush.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up JDK 17
12+
uses: actions/setup-java@v2
13+
with:
14+
java-version: '17'
15+
distribution: 'adopt'
16+
- name: Build with Maven
17+
run: mvn --batch-mode --update-snapshots -DskipTests verify
18+
- name: Upload artifacts
19+
uses: actions/upload-artifact@v2
20+
with:
21+
name: OnServerInit.jar
22+
path: target/OnServerInit-*.jar
23+
test:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up JDK 17
28+
uses: actions/setup-java@v2
29+
with:
30+
java-version: '17'
31+
distribution: 'adopt'
32+
- name: Run Tests with Maven
33+
run: mvn test

0 commit comments

Comments
 (0)