File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
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@v4
18+
19+ - name : Set up JDK 21
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : ' 21'
23+ distribution : ' temurin'
24+
25+ - name : Setup Gradle
26+ uses : gradle/actions/setup-gradle@v4
27+
28+ - name : Grant execute permission for gradlew
29+ run : chmod +x gradlew
30+
31+ - name : Build with Gradle
32+ run : ./gradlew build -x test
33+
34+ - name : Run tests
35+ run : ./gradlew test
36+
37+ dependency-check :
38+ runs-on : ubuntu-latest
39+
40+ steps :
41+ - name : Checkout code
42+ uses : actions/checkout@v4
43+
44+ - name : Run dependency check
45+ uses : dependency-check/Dependency-Check_Action@main
46+ with :
47+ project : ' FlipNote-User'
48+ path : ' .'
49+ format : ' HTML'
50+
51+ - name : Upload dependency check report
52+ uses : actions/upload-artifact@v4
53+ if : always()
54+ with :
55+ name : dependency-check-report
56+ path : reports/
You can’t perform that action at this time.
0 commit comments