Skip to content

Commit 35641d4

Browse files
committed
update
1 parent 2d9e1d5 commit 35641d4

File tree

1 file changed

+14
-36
lines changed

1 file changed

+14
-36
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,23 @@
1-
# Copyright 2022 Google LLC
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
# Github action job to test core java library features on
15-
# downstream client libraries before they are released.
1+
name: Maven Install
2+
163
on:
174
push:
18-
branches:
19-
- main
5+
branches: [ main ]
206
pull_request:
21-
name: ci
7+
branches: [ main ]
8+
229
jobs:
23-
units:
10+
build:
11+
2412
runs-on: ubuntu-latest
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
java: [8]
13+
2914
steps:
30-
- name: Get current week within the year
31-
id: date
32-
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
3315
- uses: actions/checkout@v4
34-
- uses: actions/setup-java@v4
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v4
3518
with:
36-
distribution: temurin
37-
java-version: 11
19+
java-version: '11'
20+
distribution: 'temurin'
3821
cache: maven
39-
- run: java -version
40-
- name: Install Maven modules to local Maven repository
41-
run: |
42-
mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip
43-
- run: java -version
44-
- run: mvn -B -ntp enforcer:enforce@enforce -T 1C
45-
22+
- name: Build with Maven
23+
run: mvn install -DskipTests

0 commit comments

Comments
 (0)