Skip to content

Commit 2d9e1d5

Browse files
committed
add ci flow
1 parent fe8a715 commit 2d9e1d5

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.
16+
on:
17+
push:
18+
branches:
19+
- main
20+
pull_request:
21+
name: ci
22+
jobs:
23+
units:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
java: [8]
29+
steps:
30+
- name: Get current week within the year
31+
id: date
32+
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-java@v4
35+
with:
36+
distribution: temurin
37+
java-version: 11
38+
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+

0 commit comments

Comments
 (0)