Skip to content

Commit 8ff91bd

Browse files
committed
Use GitHub Actions for testing
1 parent 515d5b3 commit 8ff91bd

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Validate Gradle Wrapper"
2+
on: [push, pull_request]
3+
4+
jobs:
5+
validation:
6+
name: "Validation"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: gradle/wrapper-validation-action@v1

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test_idea:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
ideaVersion: [2019.1, 2019.2, 2019.3, 2020.1, LATEST-EAP-SNAPSHOT]
11+
name: 'IDEA ${{ matrix.ideaVersion }}'
12+
env:
13+
IDEA_VERSION: ${{ matrix.ideaVersion }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 'Checkout'
17+
uses: actions/checkout@v2
18+
- name: 'Set up JDK'
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 11
22+
- name: 'Test'
23+
run: ./gradlew --warning-mode=all build
24+
- name: 'Generate coverage report'
25+
run: ./gradlew --warning-mode=all jacocoTestReport
26+
- name: 'Upload coverage to Codecov'
27+
uses: codecov/codecov-action@v1
28+
with:
29+
fail_ci_if_error: true

0 commit comments

Comments
 (0)