-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.56 KB
/
test_branch.yml
File metadata and controls
49 lines (42 loc) · 1.56 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
# (c) https://github.com/MontiCore/monticore
name: Test Proposed Changes
concurrency: # run this test workflow only once per "branch"
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push: # run this pipeline on every push
paths-ignore:
- "*.md" # do not run this pipeline if the only change was to markdown files
branches-ignore: [ "dev" ] # Do not run this on the default branch
env:
GRADLE_VERSION: 8.14.4 # Gradle version used
JAVA_VERSION: 21 # Java version used
GRADLE_CLI_OPTS: "-Pci --build-cache" # CLI options passed to Gradle
GRADLE_BUILD_ACTION_CACHE_KEY_JOB: "test-cache-${{ github.head_ref }}.${{ github.sha }}"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{env.JAVA_VERSION}}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: ${{env.GRADLE_VERSION}}
- name: Gradle build
run: gradle build ${{env.GRADLE_CLI_OPTS}}
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: junit-test-results
path: '**/target/test-results/test/TEST-*.xml'
retention-days: 1
# Not a part of the MontiVerse