Skip to content

Commit 7d91952

Browse files
authored
Create ci-discord-bot.yml
1 parent 1a906ba commit 7d91952

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI - discord_bot (Gradle)
2+
3+
on:
4+
push:
5+
paths:
6+
- "discord_bot/**"
7+
- ".github/workflows/ci-discord-bot.yml"
8+
pull_request:
9+
paths:
10+
- "discord_bot/**"
11+
- ".github/workflows/ci-discord-bot.yml"
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
defaults:
18+
run:
19+
working-directory: discord_bot
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up JDK 17
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: temurin
29+
java-version: "17"
30+
cache: gradle
31+
32+
- name: Grant execute permission
33+
run: chmod +x gradlew
34+
35+
- name: Build project
36+
run: ./gradlew clean build --no-daemon

0 commit comments

Comments
 (0)