-
Notifications
You must be signed in to change notification settings - Fork 3
129 lines (115 loc) · 4.37 KB
/
test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Run lint and tests
on:
workflow_call:
jobs:
test:
strategy:
matrix:
include:
- module: River Core
path: :core
- module: AMQP
path: :connector:connector-amqp
containers: rabbitmq
- module: Apache Kafka
path: :connector:connector-apache:connector-apache-kafka
containers: zookeeper kafka
- module: AWS Lambda
path: :connector:connector-aws:connector-aws-lambda
containers: localstack
- module: AWS S3
path: :connector:connector-aws:connector-aws-s3
containers: localstack
- module: AWS SQS
path: :connector:connector-aws:connector-aws-sqs
containers: localstack
- module: AWS SNS
path: :connector:connector-aws:connector-aws-sns
containers: localstack
- module: AWS SES
path: :connector:connector-aws:connector-aws-ses
containers: localstack
- module: Azure Queue Storage
path: :connector:connector-azure:connector-azure-queue-storage
containers: azurite
- module: Console
path: :connector:connector-console
- module: Elasticsearch
path: :connector:connector-elasticsearch
containers: elasticsearch
- module: File
path: :connector:connector-file
- module: Formats (JSON, CSV, Positional Flat Line)
path: :connector:connector-format
runner: macos-latest
- module: FTP
path: :connector:connector-ftp
- module: GitHub
path: :connector:connector-github
- module: Google Drive
path: :connector:connector-google:connector-google-drive
- module: HTTP
path: :connector:connector-http
- module: JMS
path: :connector:connector-jms
- module: MongoDB
path: :connector:connector-mongodb
containers: mongodb
- module: OpenAI
path: :connector:connector-openai
- module: JDBC
path: :connector:connector-rdbms:connector-rdbms-jdbc
containers: postgresql
- module: R2DBC
path: :connector:connector-rdbms:connector-rdbms-r2dbc
- module: Debezium
path: :connector:connector-red-hat:connector-red-hat-debezium
containers: mysql
- module: Redis
path: :connector:connector-redis
containers: redis
runs-on: ${{ matrix.runner || 'ubuntu-latest' }}
name: ${{ matrix.module }} [${{ matrix.runner || 'ubuntu-latest' }}]
env:
colima-command: 'start --cpu 2 --memory 4 --mount-type 9p --network-address'
steps:
- uses: actions/checkout@v4
- name: Restore Colima data [if needed] [macOS only]
if: ${{ matrix.containers && runner.os == 'macos' }}
uses: actions/cache@v3
with:
key: ${{ env.colima-command }}
path: ~/.colima
restore-keys: ${{ env.colima-command }}
- name: Install Docker [if needed] [macOS only]
if: ${{ matrix.containers && runner.os == 'macos' }}
run: |
brew install docker docker-compose
mkdir -p ~/.docker/cli-plugins
ln -sfn /usr/local/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
- name: Run Colima [if needed] [macOS only]
if: ${{ matrix.containers && runner.os == 'macos' }}
run: colima ${{ env.colima-command }}
- name: Run docker-compose [if needed]
if: ${{ matrix.containers }}
run: docker compose up ${{ matrix.containers }} -d
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run tests for ${{ matrix.module }}
env:
task: ${{ matrix.path }}:${{ matrix.task || 'allTests' }}
run: |
./gradlew ${{ matrix.gradle-command || env.task }}
- name: Store reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.module }} [${{ matrix.runner || 'ubuntu-latest' }}]
path: |
**/build/reports/
**/build/test-results/