-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support providing an x.509 certificate for user authentication
- Loading branch information
Showing
19 changed files
with
430 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ _testmain.go | |
.idea | ||
|
||
certs/ | ||
tools/ | ||
tools/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.