Skip to content

Commit 7544bb3

Browse files
committed
Add GitHub actions.
1 parent 4a872aa commit 7544bb3

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: changelogPrint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
name: changelogPrint
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: jdk 11
12+
uses: actions/setup-java@v3
13+
with:
14+
java-version: 11
15+
distribution: 'temurin'
16+
- name: gradle caching
17+
uses: gradle/gradle-build-action@v2
18+
- run: ./gradlew changelogPrint

.github/workflows/gradle-build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# GitHub recommends pinning actions to a commit SHA.
7+
# To get a newer version, you will need to update the SHA.
8+
# You can also reference a tag or branch, but the action may change without warning.
9+
10+
name: ci
11+
12+
on: [push]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
java: ['11']
20+
name: Java ${{ matrix.java }}
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: jdk ${{ matrix.java }}
24+
uses: actions/setup-java@v3
25+
with:
26+
java-version: ${{ matrix.java }}
27+
distribution: 'temurin'
28+
- name: gradle wrapper
29+
uses: gradle/wrapper-validation-action@v1
30+
- name: gradle caching
31+
uses: gradle/gradle-build-action@v2
32+
- run: ./gradlew test
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Validate Gradle Wrapper"
2+
on:
3+
push:
4+
paths:
5+
- 'gradlew'
6+
- 'gradlew.bat'
7+
- 'gradle/wrapper/'
8+
pull_request:
9+
paths:
10+
- 'gradlew'
11+
- 'gradlew.bat'
12+
- 'gradle/wrapper/'
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
validation:
19+
name: "Validation"
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- uses: gradle/wrapper-validation-action@v1

0 commit comments

Comments
 (0)