Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .env
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#EVENTSTORE_DOCKER_REGISTRY=docker.cloudsmith.io/eventstore/kurrent-staging
#EVENTSTORE_DOCKER_IMAGE=kurrentdb
#EVENTSTORE_DOCKER_TAG=ci
#KURRENTDB_DOCKER_REGISTRY=docker.cloudsmith.io/eventstore/kurrent-staging
#KURRENTDB_DOCKER_IMAGE=kurrentdb
#KURRENTDB_DOCKER_TAG=ci

EVENTSTORE_DOCKER_REGISTRY=docker.kurrent.io/eventstore
EVENTSTORE_DOCKER_IMAGE=eventstoredb-ee
EVENTSTORE_DOCKER_TAG=lts
KURRENTDB_DOCKER_REGISTRY=docker.kurrent.io/eventstore
KURRENTDB_DOCKER_IMAGE=eventstoredb-ee
KURRENTDB_DOCKER_TAG=lts

#EVENTSTORE_DOCKER_REGISTRY=docker.kurrentio/eventstore-ee
#EVENTSTORE_DOCKER_IMAGE=eventstoredb-commercial
#EVENTSTORE_DOCKER_TAG=23.10.5-commercialb-bookworm-slim
#KURRENTDB_DOCKER_REGISTRY=docker.kurrentio/eventstore-ee
#KURRENTDB_DOCKER_IMAGE=eventstoredb-commercial
#KURRENTDB_DOCKER_TAG=23.10.5-commercialb-bookworm-slim
44 changes: 0 additions & 44 deletions .github/workflows/build-and-lint.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/ci.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * 0' # Run every Sunday at midnight UTC

jobs:
go-version:
name: Get Go version
uses: ./.github/workflows/go-version.yml

build:
name: Build
needs: go-version
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ needs.go-version.outputs.go_version }}
- name: Generate protos and build project
run: make generate-protos-and-build
outputs:
go_version: ${{ needs.go-version.outputs.go_version }}

tests:
needs:
- go-version
- build

strategy:
fail-fast: false
matrix:
runtime: [ previous-lts, lts, ci ]

name: Tests
uses: ./.github/workflows/tests.yml
with:
runtime: ${{ matrix.runtime }}
go_version: ${{ needs.go-version.outputs.go_version }}
secrets: inherit

# plugins:
# needs: tests
# name: Plugins Tests
# uses: ./.github/workflows/tests.yml
# with:
# runtime: qa
# registry: docker.eventstore.com/eventstore-ee
# image: eventstoredb-commercial
# tag: 24.2.0-jammy
# go_version: ${{ needs.go-version.outputs.go_version }}
# secrets: inherit

linting:
# needs: plugins
needs: tests
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Linting
run: go vet ./...
- name: Code formatting checks
run: diff -u <(echo -n) <(goimports -d ./)
66 changes: 66 additions & 0 deletions .github/workflows/load-configuration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Load KurrentDB Runtime Configuration
on:
workflow_call:
inputs:
runtime:
description: "The runtime's name. Current options are: `ci`, `previous-lts`, `latest` and `qa`"
required: true
type: string

registry:
description: "When in QA mode, the Docker registry to use"
type: string
required: false

image:
description: "When in QA mode, the Docker image to use"
type: string
required: false

tag:
description: "When in QA mode, the Docker image tag to use"
type: string
required: false

outputs:
runtime:
description: The runtime's name
value: ${{ inputs.runtime }}

registry:
description: The Docker registry
value: ${{ jobs.load.outputs.registry }}

image:
description: The Docker image
value: ${{ jobs.load.outputs.image }}

tag:
description: The Docker image tag
value: ${{ jobs.load.outputs.tag }}

jobs:
load:
runs-on: ubuntu-latest
outputs:
registry: ${{ steps.set.outputs.registry }}
image: ${{ steps.set.outputs.image }}
tag: ${{ steps.set.outputs.tag }}

steps:
- name: Set KurrentDB Runtime Configuration Properties
id: set
run: |
case ${{ inputs.runtime }} in
"qa")
echo "registry=${{ inputs.registry }}" >> $GITHUB_OUTPUT
echo "image=${{ inputs.image }}" >> $GITHUB_OUTPUT
echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT
;;

*)
echo "registry=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].registry }}" >> $GITHUB_OUTPUT
echo "image=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].image }}" >> $GITHUB_OUTPUT
echo "tag=${{ fromJSON(vars.KURRENTDB_DOCKER_IMAGES)[inputs.runtime].tag }}" >> $GITHUB_OUTPUT
;;
esac
25 changes: 0 additions & 25 deletions .github/workflows/lts.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/previous-lts.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ on:
description: "The docker registry to use"

jobs:
build-and-lint:
name: Build and lint
uses: ./.github/workflows/build-and-lint.yml
go-version:
name: Get Go version
uses: ./.github/workflows/go-version.yml

test:
needs: build-and-lint
needs: go-version
name: QA
uses: ./.github/workflows/tests.yml
with:
runtime: qa
registry: ${{ inputs.registry }}
image: ${{ inputs.image }}
tag: ${{ inputs.tag }}
registry: ${{ inputs.registry }}
go_version: ${{ needs.go-version.outputs.go_version }}
secrets: inherit
54 changes: 0 additions & 54 deletions .github/workflows/test-plugins.yml

This file was deleted.

Loading
Loading