-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.05 KB
/
kafka.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: kafka
on:
push:
defaults:
run:
working-directory: kafka
jobs:
oracle:
environment: OCIStreaming
env:
authToken: ${{ secrets.AUTH_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: latest
- run: npm i
- run: npm run oracle
local:
runs-on: ubuntu-latest
steps:
- uses: davidkhala/setup-dockerode@main
- run: |
curl -sSL https://raw.githubusercontent.com/davidkhala/mq/main/kafka/bitnami/docker-compose.yml > docker-compose.yml
docker compose up -d
- run: sleep 7
- run: npm i
- run: npm run test:local
pulsar:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pulsar
steps:
- uses: davidkhala/setup-dockerode@main
- run: |
curl -sSL https://raw.githubusercontent.com/davidkhala/mq/main/pulsar/docker-compose.yml > docker-compose.yml
docker compose up -d
- run: sleep 7
- run: npm i
- run: npm test