Skip to content

Commit 8fe0255

Browse files
committed
Add sample_main_push.yml
1 parent b2a0556 commit 8fe0255

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Sample Main Push Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Setup JDK
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
24+
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x ./gradlew
27+
28+
- name: Build with Gradle
29+
run: ./gradlew build
30+
31+
- name: Run Tests
32+
run: ./gradlew test
33+
34+
- name: Verify Lint
35+
run: ./gradlew lint

0 commit comments

Comments
 (0)