-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.05 KB
/
review.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Build and Test"
on:
pull_request:
paths-ignore:
- '*.md'
types:
- synchronize
- opened
jobs:
review:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '19'
cache: gradle
- name: Setup docker (missing on MacOS)
if: runner.os == 'macos'
run: |
brew install docker
colima start
# For testcontainers to find the Colima socket
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Tests with Gradle
run: ./gradlew ktlintCheck assemble build check allTests publishToMavenLocal