Skip to content

Commit 88dc5a7

Browse files
committed
Add github actions
1 parent 87b4bbc commit 88dc5a7

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
custom: https://www.paypal.me/MarcoGomiero
4+
5+

.github/workflows/pr-checks.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR Checks
2+
on:
3+
pull_request:
4+
branches:
5+
- '*'
6+
7+
jobs:
8+
test:
9+
runs-on: [ubuntu-latest]
10+
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@v2
14+
- name: Set up JDK 1.8
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 1.8
18+
19+
- name: Run all the tests
20+
run: ./gradlew test
21+
22+
- name: Stop Gradle
23+
run: ./gradlew --stop
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish Library
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
publish:
9+
runs-on: [ubuntu-latest]
10+
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@v2
14+
- name: Set up JDK 1.8
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 1.8
18+
19+
- name: Run all the tests
20+
run: ./gradlew test
21+
22+
- name: Publish Library
23+
env:
24+
bintrayUser: ${{ secrets.BINTRAYUSER }}
25+
bintrayApiKey: ${{ secrets.BINTRAYAPIKEY }}
26+
run: ./gradlew bintrayUpload
27+
28+
- name: Stop Gradle
29+
run: ./gradlew --stop

0 commit comments

Comments
 (0)