Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
QZero_0
java-design-patterns
提交
72bb189d
J
java-design-patterns
项目概览
QZero_0
/
java-design-patterns
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
java-design-patterns
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
72bb189d
编写于
10月 28, 2021
作者:
S
Subhrodip Mohanta
提交者:
GitHub
10月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CI: Update Workflows (#1879)
* Update Workflows #1875 * Updated requested changes
上级
bee12833
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
38 addition
and
22 deletion
+38
-22
.github/workflows/maven-ci.yml
.github/workflows/maven-ci.yml
+35
-14
.github/workflows/maven-pr-builder.yml
.github/workflows/maven-pr-builder.yml
+3
-8
未找到文件。
.github/workflows/maven-ci.yml
浏览文件 @
72bb189d
...
...
@@ -24,6 +24,9 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# We are using two jobs here for testing our code on the latest JDK 11 build as well as a more satble build version of 11.0.3
# You can see the full discussion here https://github.com/iluwatar/java-design-patterns/pull/1868#issue-1029459688
name
:
Java CI
on
:
...
...
@@ -33,12 +36,11 @@ on:
jobs
:
build
:
# This Workflow Job will build this project and run Sonar analysis using JDK 11.0.3
build-and-analyze
:
name
:
Build and Run Sonar analysis on JDK 11.0.3
runs-on
:
ubuntu-20.04
strategy
:
matrix
:
java-version
:
[
11.0.3
,
11
]
steps
:
-
name
:
Checkout Code
...
...
@@ -47,12 +49,14 @@ jobs:
# Disabling shallow clone for improving relevancy of SonarQube reporting
fetch-depth
:
0
-
name
:
Set up JDK
${{ matrix.java-version }}
-
name
:
Set up JDK
11.0.3
uses
:
actions/setup-java@v2
with
:
java-version
:
${{ matrix.java-version }}
java-version
:
11.0.3
distribution
:
'
zulu'
cache
:
'
maven'
# Cache Sonar packages which as used to run anaylysis and collect metrics
-
name
:
Cache SonarCloud packages
uses
:
actions/cache@v2
with
:
...
...
@@ -60,14 +64,6 @@ jobs:
key
:
${{ runner.os }}-sonar
restore-keys
:
${{ runner.os }}-sonar
-
name
:
Cache Maven dependencies
uses
:
actions/cache@v2
with
:
path
:
~/.m2/repository
key
:
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys
:
|
${{ runner.os }}-maven-
# Some tests need screen access
-
name
:
Install xvfb
run
:
sudo apt-get install -y xvfb
...
...
@@ -78,3 +74,28 @@ jobs:
# These two env variables are needed for sonar analysis
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN
:
${{ secrets.SONAR_TOKEN }}
# This Workflow Job is going to build the project on the latest stable JDK 11
build
:
name
:
Build and Test on JDK
11
runs-on
:
ubuntu-20.04
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
-
name
:
Set up JDK 11 (Latest)
uses
:
actions/setup-java@v2
with
:
java-version
:
11
distribution
:
'
zulu'
cache
:
'
maven'
# Some tests need screen access
-
name
:
Install xvfb
run
:
sudo apt-get install -y xvfb
-
name
:
Build with Maven
run
:
xvfb-run ./mvnw clean verify
.github/workflows/maven-pr-builder.yml
浏览文件 @
72bb189d
...
...
@@ -34,11 +34,13 @@ on:
jobs
:
build
:
name
:
Build JDP
runs-on
:
ubuntu-20.04
strategy
:
matrix
:
java-version
:
[
11.0.3
,
11
]
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v2
...
...
@@ -47,14 +49,7 @@ jobs:
with
:
java-version
:
${{ matrix.java-version }}
distribution
:
'
zulu'
-
name
:
Cache Maven Dependecies
uses
:
actions/cache@v2
with
:
path
:
~/.m2/repository
key
:
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys
:
|
${{ runner.os }}-maven-
cache
:
'
maven'
# Some tests need screen access
-
name
:
Install xvfb
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录