Skip to content

Java CI - Main

Java CI - Main #85

Workflow file for this run

# 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 - Main
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# 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: master
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