forked from junit-team/junit4
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.09 KB
/
main.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
39
40
name: CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
permissions:
contents: write # to fetch code (actions/checkout)
jobs:
build-and-verify:
name: Build and verify (JDK 8)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# at least support HEAD~1 for testing
fetch-depth: 2
- name: Download Maven # Download with default JDK because OpenJDK 6 does not support TLS 1.2
run: ./mvnw --version
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: temurin
- name: Build and verify
run: ./mvnw clean verify javadoc:javadoc site:site --batch-mode --errors --settings .github/workflows/settings.xml
- name: diffctx
uses: williamfzc/[email protected]
with:
lang: java
# https://sourcegraph.github.io/scip-java/docs/getting-started.html#run-scip-java-index
index_cmd: scip-java index -- package -DskipTests --batch-mode --errors --settings .github/workflows/settings.xml