-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 941 Bytes
/
ci.yml
File metadata and controls
46 lines (37 loc) · 941 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
38
39
40
41
42
43
44
45
46
---
name: CI
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Run spotless check
run: ./gradlew spotlessCheck -si
- name: Run SpotBugs check
run: ./gradlew app:spotbugsMain -si
- name: Run tests
run: ./gradlew test -si
env:
GITHUB_PAT: ${{ secrets.PAT }}
- name: Generate Allure report
run: ./gradlew allureReport -si
- name: Upload Allure report
if: always()
uses: actions/upload-artifact@v4
with:
name: allure-results
path: app/build/allure-results
retention-days: 7