From 1802a9bcc4f98724e94b3c07a444737bc845c50d Mon Sep 17 00:00:00 2001 From: abalias Date: Tue, 6 Dec 2022 11:22:30 +0000 Subject: [PATCH] ci(mercury): add mercury-mediator unit tests and release ci (#191) --- .github/workflows/mercury-mediator.yml | 35 ++++++++++++++++++++++++++ .github/workflows/mercury.yml | 4 +-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/mercury-mediator.yml diff --git a/.github/workflows/mercury-mediator.yml b/.github/workflows/mercury-mediator.yml new file mode 100644 index 0000000000..fa7ade6e23 --- /dev/null +++ b/.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 diff --git a/.github/workflows/mercury.yml b/.github/workflows/mercury.yml index c21f78e433..75b876a55c 100644 --- a/.github/workflows/mercury.yml +++ b/.github/workflows/mercury.yml @@ -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: