Skip to content

Commit

Permalink
Fixup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcummings committed Jun 4, 2024
1 parent da61e84 commit e3aa47e
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 138 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,21 @@ on:
required: false
type: string
default: eventstore-ce/eventstoredb-ce
framework:
required: true
type: string
os:
required: true
type: string
test:
required: true
type: string
configuration:
required: true
type: string

jobs:
test:
timeout-minutes: 20
runs-on: ${{ inputs.os }}
name: EventStore.Client.${{ inputs.test }}/${{ inputs.os }}/${{ inputs.framework }}/${{ inputs.docker-tag }}
strategy:
fail-fast: false
matrix:
framework: [ net6.0, net7.0, net8.0 ]
os: [ ubuntu-latest ]
configuration: [ release ]
runs-on: ${{ matrix.os }}
name: ${{ inputs.test }} (${{ matrix.os }}, ${{ matrix.framework }})
env:
CLOUDSMITH_CICD_USER: ${{ secrets.CLOUDSMITH_CICD_USER }}
steps:
Expand All @@ -58,18 +55,14 @@ jobs:
6.0.x
7.0.x
8.0.x
- name: Compile
shell: bash
run: |
dotnet build --configuration ${{ inputs.configuration }} --framework ${{ inputs.framework }} src/EventStore.Client.${{ inputs.test }}
- name: Run Tests
shell: bash
env:
ES_DOCKER_TAG: ${{ inputs.docker-tag }}
ES_DOCKER_REGISTRY: docker.eventstore.com/${{ inputs.docker-image }}
run: |
sudo ./gencert.sh
dotnet test --configuration ${{ inputs.configuration }} --blame \
dotnet test --configuration ${{ matrix.configuration }} --blame \
--logger:"GitHubActions;report-warnings=false" --logger:"console;verbosity=normal" \
--framework ${{ inputs.framework }} \
--framework ${{ matrix.framework }} \
test/EventStore.Client.${{ inputs.test }}.Tests
33 changes: 0 additions & 33 deletions .github/workflows/ce.yml

This file was deleted.

30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test CI
name: CI

on:
pull_request:
Expand All @@ -9,7 +9,31 @@ on:
- v*

jobs:
test:
ce:
uses: ./.github/workflows/base.yml
strategy:
fail-fast: false
matrix:
docker-tag: [ ci, lts, previous-lts ]
test: [ Streams, PersistentSubscriptions, Operations, UserManagement, ProjectionManagement ]
name: Test CE (${{ matrix.docker-tag }})
with:
docker-tag: ci
docker-tag: ${{ matrix.docker-tag }}
docker-image: eventstore-ce/eventstoredb-ce
test: ${{ matrix.test }}
ee:
uses: ./.github/workflows/base.yml
if: ${{ github.repository_owner == 'EventStore' }}
strategy:
fail-fast: false
matrix:
docker-tag: [ 24.2.0-jammy ]
test: [ Plugins ]
name: Test EE (${{ matrix.docker-tag }})
with:
docker-tag: ${{ matrix.docker-tag }}
docker-image: eventstore-ee/eventstoredb-commercial
test: ${{ matrix.test }}
secrets:
CLOUDSMITH_CICD_USER: ${{ secrets.CLOUDSMITH_CICD_USER }}
CLOUDSMITH_CICD_TOKEN: ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
20 changes: 13 additions & 7 deletions .github/workflows/dispatch-ce.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: "Dispatch CE"
name: Dispatch CE

on:
workflow_dispatch:
inputs:
version:
description: "Docker tag version"
docker-tag:
description: "Docker tag"
required: true
type: string
image:
docker-image:
description: "Docker image"
required: true
type: string

jobs:
test:
uses: ./.github/workflows/ce.yml
uses: ./.github/workflows/base.yml
strategy:
fail-fast: false
matrix:
test: [ Streams, PersistentSubscriptions, Operations, UserManagement, ProjectionManagement ]
name: Test CE (${{ inputs.docker-tag }})
with:
docker-tag: ${{ inputs.version }}
docker-image: ${{ inputs.image }}
docker-tag: ${{ inputs.docker-tag }}
docker-image: ${{ inputs.docker-image }}
test: ${{ matrix.test }}
23 changes: 16 additions & 7 deletions .github/workflows/dispatch-ee.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
name: "Dispatch EE"
name: Dispatch EE

on:
workflow_dispatch:
inputs:
version:
description: "Docker tag version"
docker-tag:
description: "Docker tag"
required: true
type: string
image:
docker-image:
description: "Docker image"
required: true
type: string

jobs:
test:
uses: ./.github/workflows/ee.yml
uses: ./.github/workflows/base.yml
strategy:
fail-fast: false
matrix:
test: [ Plugins ]
name: Test EE (${{ inputs.docker-tag }})
with:
docker-tag: ${{ inputs.version }}
docker-image: ${{ inputs.image }}
docker-tag: ${{ inputs.docker-tag }}
docker-image: ${{ inputs.docker-image }}
test: ${{ matrix.test }}
secrets:
CLOUDSMITH_CICD_USER: ${{ secrets.CLOUDSMITH_CICD_USER }}
CLOUDSMITH_CICD_TOKEN: ${{ secrets.CLOUDSMITH_CICD_TOKEN }}
41 changes: 0 additions & 41 deletions .github/workflows/ee.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/lts.yml

This file was deleted.

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

This file was deleted.

0 comments on commit e3aa47e

Please sign in to comment.