Skip to content

Commit 4820827

Browse files
SessionHero01SessionHero01
andauthored
Add github action to verify the PR (#1)
* Add github action to verify the PR * Only trigger drone CI on push and tag --------- Co-authored-by: SessionHero01 <[email protected]>
1 parent be27874 commit 4820827

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.drone.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
kind: pipeline
22
type: docker
33
name: Build and Publish
4+
trigger:
5+
event: [push, tag]
46

57
steps:
68
- name: check out

.github/workflows/check.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: 'recursive'
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v4
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
cache: gradle
26+
27+
- name: Verify build for PR
28+
run: ./gradlew check

0 commit comments

Comments
 (0)