-
Notifications
You must be signed in to change notification settings - Fork 67
37 lines (32 loc) · 1.05 KB
/
pull_request.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
name: Java PR build (gradle)
on:
pull_request:
branches: [ main ]
jobs:
build-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
- name: Build java with Gradle
working-directory: other-examples/java
run: ./gradlew build
- name: Build getting-started-guides/java with Gradle
working-directory: getting-started-guides/java
run: ./gradlew build
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install markdown-link-check
# TODO(jack-berg): use latest when config file reading bug is fixed: https://github.com/tcort/markdown-link-check/issues/246
run: npm install -g [email protected]
- name: Run markdown-link-check
run: |
find . -type f \
-name '*.md' \
| xargs .github/scripts/markdown-link-check-with-retry.sh