1 parent 3ccc05e commit 4e11801Copy full SHA for 4e11801
1 file changed
.github/workflows/ci-cd.yml
@@ -0,0 +1,32 @@
1
+name: Ticket Tracker CI
2
+
3
+on:
4
+ push:
5
+ branches: [ main, develop, add-github-actions ]
6
+ pull_request:
7
+ branches: [ main ]
8
9
+jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up JDK
18
+ uses: actions/setup-java@v4
19
+ with:
20
+ java-version: '17'
21
+ distribution: 'temurin'
22
+ cache: 'maven'
23
24
+ - name: Build and Test with Maven
25
+ run: mvn clean verify
26
27
+ - name: Upload reports
28
+ if: failure()
29
+ uses: actions/upload-artifact@v4
30
31
+ name: junit-reports
32
+ path: "**/target/surefire-reports/*.xml"
0 commit comments