.github/workflows/example-sanity-check.yml #2632
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
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/[email protected] | |
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 | |