forked from ricardoferreirasilva/jsweaver
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.74 KB
/
ant-staging.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
name: Java CI - Staging
on:
push:
branches: [ staging ]
pull_request:
branches: [ staging ]
# Daily at midnight
schedule:
- cron: '0 0 * * *'
permissions:
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Because of scheduled runs, by default run on default branch
with:
ref: staging
path: workspace/jsweaver
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Check out specs-java-libs repo
uses: actions/checkout@v4
with:
repository: specs-feup/specs-java-libs
path: workspace/specs-java-libs
- name: Check out lara-framework repo
uses: actions/checkout@v4
with:
repository: specs-feup/lara-framework
ref: feature/lara-js
path: workspace/lara-framework
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
# Setting up gradle multi-project would be helpful
- name: Build and Test Jackdaw
working-directory: workspace/jsweaver/jsweaver
run: gradle build test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: 'workspace/jsweaver/**/build/test-results/test/TEST-*.xml'
summary: true