-
Notifications
You must be signed in to change notification settings - Fork 1.8k
40 lines (35 loc) · 1.09 KB
/
example-sanity-check.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
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