Skip to content

Commit 13a91a7

Browse files
authored
Merge pull request #16 from jpweytjens/ci/test-on-pr
ci: run unit tests on PRs
2 parents c539bf9 + 84cf95f commit 13a91a7

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ci-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Java
23+
uses: actions/setup-java@v4
24+
with:
25+
distribution: 'temurin'
26+
java-version: 17
27+
28+
- name: Setup Gradle
29+
uses: gradle/actions/setup-gradle@v4
30+
31+
- name: Setup Android SDK
32+
uses: android-actions/setup-android@v3
33+
34+
- name: Run unit tests
35+
env:
36+
USERNAME: ${{ github.actor }}
37+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: ./gradlew --no-daemon test

0 commit comments

Comments
 (0)