Skip to content

Commit

Permalink
ci(mercury): add mercury-mediator unit tests and release ci (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
abalias committed Dec 6, 2022
1 parent 1749e9d commit 1802a9b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/mercury-mediator.yml
@@ -0,0 +1,35 @@
name: Mercury mediator testing workflow

# Cancel previously running workflows if new commit pushed to the branch
# this will help to push fixes earlier and stop previous workflows
concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-mercury-mediator
cancel-in-progress: true

on:
push:
branches:
- "main"
paths:
- ".github/workflows/mercury-mediator.yml"
- ".github/workflows/scala-unit-tests.yml"
- "mercury-mediator/**"
pull_request:
paths:
- ".github/workflows/mercury-mediator.yml"
- ".github/workflows/scala-unit-tests.yml"
- "mercury-mediator/**"

jobs:
build-and-test-mercury-mediator:
uses: ./.github/workflows/scala-unit-tests.yml
with:
component-name: "Mercury Mediator"
component-dir: "mercury/mercury-mediator"
secrets: inherit
release:
if: github.event_name == 'push'
uses: ./.github/workflows/release.yml
with:
release-component: "mercury/mercury-mediator"
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/mercury.yml
Expand Up @@ -13,12 +13,12 @@ on:
paths:
- ".github/workflows/mercury.yml"
- ".github/workflows/scala-unit-tests.yml"
- "mercury/**"
- "mercury-library/**"
pull_request:
paths:
- ".github/workflows/mercury.yml"
- ".github/workflows/scala-unit-tests.yml"
- "mercury/**"
- "mercury-library/**"

jobs:
build-and-test-mercury:
Expand Down

0 comments on commit 1802a9b

Please sign in to comment.