File tree Expand file tree Collapse file tree 2 files changed +49
-4
lines changed Expand file tree Collapse file tree 2 files changed +49
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2020 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
+
15
+ # A workflow that runs tests on every new pull request
16
+ name : Run unit tests
17
+
18
+ on :
19
+ repository_dispatch :
20
+ types : [test]
21
+ push :
22
+ branches : ['*']
23
+ pull_request :
24
+ branches : ['*']
25
+ workflow_dispatch :
26
+
27
+ jobs :
28
+ run-unit-test :
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
33
+ - name : Checkout Repo
34
+ uses : actions/checkout@v2
35
+
36
+ - name : Gradle Wrapper Validation
37
+ uses : gradle/wrapper-validation-action@v1.0.4
38
+
39
+ - name : Set up JDK 11
40
+ uses : actions/setup-java@v2.3.0
41
+ with :
42
+ java-version : ' 11'
43
+ distribution : ' adopt'
44
+
45
+ - name : Build modules
46
+ run : ./gradlew build jacocoTestReport --stacktrace
Original file line number Diff line number Diff line change @@ -6,20 +6,19 @@ plugins:
6
6
- - "@google/semantic-release-replace-plugin"
7
7
- replacements:
8
8
- files:
9
- - "./build.gradle"
9
+ - "./build.gradle(.kts)? "
10
10
from: "\\bversion = '.*'"
11
11
to: "version = '${nextRelease.version}'"
12
-
13
12
- files:
14
13
- "README.md"
15
14
from: ":[0-9].[0-9].[0-9]"
16
15
to: ":${nextRelease.version}"
17
16
- - "@semantic-release/exec"
18
- - prepareCmd: "./gradlew build --info --stacktrace"
17
+ - prepareCmd: "./gradlew build --warn --stacktrace"
19
18
publishCmd: "./gradlew publish --warn --stacktrace"
20
19
- - "@semantic-release/git"
21
20
- assets:
22
- - "./build.gradle"
21
+ - "./build.gradle(.kts)? "
23
22
- "*.md"
24
23
- "@semantic-release/github"
25
24
options:
You can’t perform that action at this time.
0 commit comments