-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 752 Bytes
/
ci.yml
File metadata and controls
37 lines (29 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ci pipeline
on:
pull_request:
branches:
- dev
- main
paths-ignore:
- 'README.md'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: set up jdk 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: set up gradle
uses: gradle/actions/setup-gradle@v3
- name: grant permission to gradlew
run: chmod +x gradlew
- name: test for dev
if: github.event.pull_request.base.ref == 'dev'
run: ./gradlew test
- name: test for main
if: github.event.pull_request.base.ref == 'main'
run: ./gradlew clean build