Skip to content

Commit 53ec77c

Browse files
authored
Merge pull request #25 from yml-org/feature/added_test_action
Added GA test workflow
2 parents d644c12 + c95a458 commit 53ec77c

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
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-ignore: ['gh-pages']
23+
pull_request:
24+
branches-ignore: ['gh-pages']
25+
workflow_dispatch:
26+
27+
jobs:
28+
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@v3
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@v3
41+
with:
42+
java-version: '11'
43+
distribution: 'temurin'
44+
45+
- name: Build modules
46+
run: ./gradlew koverReport --stacktrace

0 commit comments

Comments
 (0)