Skip to content

.github/workflows/example-sanity-check.yml #2154

.github/workflows/example-sanity-check.yml

.github/workflows/example-sanity-check.yml #2154

on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
jobs:
#Note: no -pl here because we publish everything from this branch and use this as the basis for all uploads.
linux-x86_64:
runs-on: ubuntu-18.04
steps:
- uses: AutoModality/action-clean@v1
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build on linux-x86_64
shell: bash
env:
DEBIAN_FRONTEND: noninteractive
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn --version
for folder in `ls`; do
if [ -d "$folder" ] && [ "$folder" != "mvn-project-template" ]; then
cd "$folder"
if test -f "pom.xml"; then
mvn clean test
fi
cd ..
fi
done