-
Notifications
You must be signed in to change notification settings - Fork 60
48 lines (45 loc) · 1.68 KB
/
test-graalvm-metadata.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Test GraalVM Reachability Metadata Repository"
on:
push:
paths:
- 'common/graalvm-reachability-metadata/**'
- '.github/actions/**'
- '.github/workflows/test-graalvm-metadata.yml'
- 'gradle/libs.versions.toml'
pull_request:
paths:
- 'common/graalvm-reachability-metadata/**'
- '.github/actions/**'
- '.github/workflows/test-graalvm-metadata.yml'
- 'gradle/libs.versions.toml'
workflow_dispatch:
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'graalvm/native-build-tools' }}
jobs:
test-graalvm-reachability-metadata:
name: "Test GraalVM Reachability Metadata"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java-version: [ 17 ]
os: [ ubuntu-20.04 ]
steps:
- name: "☁️ Checkout repository"
uses: actions/checkout@v4
- name: "🔧 Prepare environment"
uses: ./.github/actions/prepare-environment
with:
java-version: ${{ matrix.java-version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: "❓ Checkstyle"
run: ./gradlew :graalvm-reachability-metadata:checkstyleMain :graalvm-reachability-metadata:checkstyleTest
- name: "❓ GraalVM Reachability Metadata test"
run: ./gradlew :graalvm-reachability-metadata:test
- name: "📜 Upload tests results"
if: always()
uses: actions/upload-artifact@v3
with:
name: tests-results
path: common/graalvm-reachability-metadata/build/reports/tests/