-
Notifications
You must be signed in to change notification settings - Fork 28
89 lines (72 loc) · 2.24 KB
/
test-plugins.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
name: enterprise plugins tests workflow
on:
workflow_call:
inputs:
esdb_repository:
required: true
type: string
esdb_version:
required: true
type: string
go_version:
required: true
type: string
jobs:
secure:
name: Secure
strategy:
fail-fast: false
matrix:
test: [Plugins]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go_version }}
- name: Login to Cloudsmith
uses: docker/login-action@v3
with:
registry: docker.eventstore.com
username: ${{ secrets.CLOUDSMITH_CICD_USER }}
password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
- name: Generate certificates
run: docker compose --file docker-compose.yml up
- name: Run Go Tests
run: make ci CI_TARGET=Test${{ matrix.test }}
env:
EVENTSTORE_DOCKER_REPOSITORY: ${{ inputs.esdb_repository }}
EVENTSTORE_DOCKER_TAG: ${{ inputs.esdb_version }}
EVENTSTORE_INSECURE: false
cluster:
name: Cluster
strategy:
fail-fast: false
matrix:
test: [Plugins]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go_version }}
- name: Login to Cloudsmith
uses: docker/login-action@v3
with:
registry: docker.eventstore.com
username: ${{ secrets.CLOUDSMITH_CICD_USER }}
password: ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
- name: Set up cluster with Docker Compose
run: |
docker compose -f cluster-docker-compose.yml up -d
env:
EVENTSTORE_DOCKER_REPOSITORY: ${{ inputs.esdb_repository }}
EVENTSTORE_DOCKER_TAG: ${{ inputs.esdb_version }}
- name: Run Go Tests
run: make ci CI_TARGET=Test${{ matrix.test }}
env:
EVENTSTORE_INSECURE: false
CLUSTER: true
- name: Shutdown cluster
run: docker compose -f cluster-docker-compose.yml down
if: always()