Skip to content

Commit acc87de

Browse files
authored
chore: Synced file(s) with googlemaps/.github (#998)
* chore: Synced local '.github/' with remote 'sync-files/android/.github/' * chore: Synced local '.releaserc' with remote 'sync-files/android/.lib_releaserc'
1 parent 1798e9b commit acc87de

File tree

2 files changed

+49
-4
lines changed

2 files changed

+49
-4
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

.releaserc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ plugins:
66
- - "@google/semantic-release-replace-plugin"
77
- replacements:
88
- files:
9-
- "./build.gradle"
9+
- "./build.gradle(.kts)?"
1010
from: "\\bversion = '.*'"
1111
to: "version = '${nextRelease.version}'"
12-
1312
- files:
1413
- "README.md"
1514
from: ":[0-9].[0-9].[0-9]"
1615
to: ":${nextRelease.version}"
1716
- - "@semantic-release/exec"
18-
- prepareCmd: "./gradlew build --info --stacktrace"
17+
- prepareCmd: "./gradlew build --warn --stacktrace"
1918
publishCmd: "./gradlew publish --warn --stacktrace"
2019
- - "@semantic-release/git"
2120
- assets:
22-
- "./build.gradle"
21+
- "./build.gradle(.kts)?"
2322
- "*.md"
2423
- "@semantic-release/github"
2524
options:

0 commit comments

Comments
 (0)