-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (76 loc) · 2.12 KB
/
ci.yml
File metadata and controls
89 lines (76 loc) · 2.12 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on:
workflow_dispatch:
push:
branches:
- main
- master
paths:
- 'src/**'
- 'build.gradle*'
- 'settings.gradle*'
- 'gradle/**'
- 'tools/**'
- '.github/workflows/**'
pull_request:
paths:
- 'src/**'
- 'build.gradle*'
- 'settings.gradle*'
- 'gradle/**'
- 'tools/**'
- '.github/workflows/**'
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Download Fixtures And Run Tests
runs-on: ubuntu-latest
timeout-minutes: 45
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.12.1"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Sync addon source repos
run: python tools/download_latest_release_jars.py --update
- name: Download latest release fixture jars
run: gradle downloadLatestReleaseJars --no-daemon
- name: Run test suite
run: gradle test --no-daemon -PautoGenerateStubs
- name: Upload release summaries
if: always()
uses: actions/upload-artifact@v4
with:
name: release-summaries
if-no-files-found: warn
path: |
ai_reference/addons/clone-summary.json
fixtures/addons/jars/release-summary.json
fixtures/addons/jars/release-summary.csv
fixtures/addons/jars/release-summary.txt
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports
if-no-files-found: warn
path: |
build/reports/tests/test/**
build/test-results/test/**