-
Notifications
You must be signed in to change notification settings - Fork 390
34 lines (32 loc) · 1.17 KB
/
verify.yaml
File metadata and controls
34 lines (32 loc) · 1.17 KB
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
on:
schedule:
# Runs at 04:00 am
- cron: '0 4 * * *'
workflow_dispatch:
# delete this before merging the PR
pull_request:
# Generates a list of libraries that cannot be
# compiled (printed to the action stdout)
name: Verify libraries compilation
jobs:
verify:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- uses: actions/checkout@v2
with:
path: google-api-java-client-services
# we install the moreutils `parallel` command
- run: sudo apt-get install moreutils
- working-directory: google-api-java-client-services/clients
run: |
set -ex
find . -name pom.xml -not -path '*/target/*' \
| cut -d'/' -f2-4 \
| sed 's/\(.*\)/<module>\1<\/module>/' \
| (echo "<project><modelVersion>4.0.0</modelVersion><groupId>temp</groupId><artifactId>temp</artifactId><version>1.0</version><packaging>pom</packaging><modules>"; cat -; echo "</modules></project>") > pom.xml
mvn clean compile -Dmaven.testSkip=true -fae --fail-at-end \
|& grep -E "^\[ERROR\] Failed to execute goal"