Skip to content

Commit d0c276e

Browse files
committed
github action & vscode
1 parent 4a81ac5 commit d0c276e

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/maven.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,29 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
build:
14-
13+
java5:
1514
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: '8'
21+
distribution: 'temurin'
22+
cache: maven
23+
- name: Build with Maven
24+
run: mvn -B package --file java-5/pom.xml
1625

26+
java6:
27+
runs-on: ubuntu-latest
1728
steps:
1829
- uses: actions/checkout@v3
1930
- name: Set up JDK 17
2031
uses: actions/setup-java@v3
2132
with:
22-
java-version: '17'
33+
java-version: '6'
2334
distribution: 'temurin'
2435
cache: maven
2536
- name: Build with Maven
26-
run: mvn -B package --file pom.xml
37+
run: mvn -B package --file java-6/pom.xml
38+

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.compile.nullAnalysis.mode": "automatic"
3+
}

0 commit comments

Comments
 (0)