IntegrationTest-Scheduled #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: IntegrationTest-Scheduled | |
# the ora-cc-rsc tag number (currently 30) is used twice in this workflow | |
on: | |
schedule: | |
- cron: "30 0 * * *" | |
jobs: | |
integration-test: | |
if: ${{ github.repository == 'OpenRoberta/openroberta-lab' }} | |
runs-on: ubuntu-latest | |
container: openroberta/base-x64:30 # ora-cc-rsc tag number | |
steps: | |
- name: branch ${{ github.ref }}, repo ${{ github.repository }}, ora-cc-rsc-tag 30 # ora-cc-rsc tag number | |
uses: actions/checkout@v2 | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Cache local maven repository | |
uses: actions/cache@v2 | |
with: | |
path: /root/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with maven and run integration tests | |
run: mvn --batch-mode clean install -PrunIT |