-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 1.08 KB
/
ci.yml
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
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
tests: [ 'check', 'integrationTest' ]
fail-fast: false
name: Run ${{ matrix.tests }} on Java 11
steps:
- uses: actions/checkout@v4
- name: Install mongotools
run: |
curl -o mongodb-database-tools-ubuntu2004-x86_64-100.6.0.tgz https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-x86_64-100.6.0.tgz;
tar -zxvf mongodb-database-tools-ubuntu2004-x86_64-100.6.0.tgz;
cd mongodb-database-tools-ubuntu2004-x86_64-100.6.0/bin;
cp * /usr/local/bin/
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Execute Gradle tests
run: ./gradlew ${{ matrix.tests }} -x ktlintCheck -x detekt