-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (32 loc) · 858 Bytes
/
build.yml
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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set Up JDK 17
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
- name: Run Plugin Build
run: ./gradlew :plugin:build
- name: Run Samples Check
run: ./gradlew metalavaCheckCompatibility metalavaCheckCompatibilityDebug
- name: Copy Test Results
if: always()
run: |
mkdir -p junit
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} junit/ \;
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-results
path: junit