Skip to content

Commit

Permalink
Merge pull request #91 from qa-guru/check_e2e
Browse files Browse the repository at this point in the history
check e2e
  • Loading branch information
dtuchs authored Mar 13, 2024
2 parents 0ffafa4 + 9d955e6 commit 124dc32
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/niffler-auth-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand All @@ -51,3 +68,8 @@ jobs:
docker-compose -f docker-compose.ci.yml stop auth.niffler.dc && docker-compose -f docker-compose.ci.yml up -d --no-deps auth.niffler.dc
docker system prune -a -f
echo "Done!"
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/niffler-currency-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand All @@ -51,3 +68,8 @@ jobs:
docker-compose -f docker-compose.ci.yml stop currency.niffler.dc && docker-compose -f docker-compose.ci.yml up -d --no-deps currency.niffler.dc
docker system prune -a -f
echo "Done!"
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/niffler-frontend-gql-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand All @@ -47,3 +64,8 @@ jobs:
pwd
echo "### niffler-front version will be used: ${{ env.PREFIX }}/${{ env.FRONT_IMAGE }}-${{ env.PROFILE }}:${{ env.FRONT_VER }}"
bash ./docker-build.sh staging push
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/niffler-frontend-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand Down Expand Up @@ -53,3 +70,8 @@ jobs:
docker-compose -f docker-compose.ci.yml stop frontend.niffler.dc && docker-compose -f docker-compose.ci.yml up -d --no-deps frontend.niffler.dc
docker system prune -a -f
echo "Done!"
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/niffler-gateway-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand All @@ -51,3 +68,8 @@ jobs:
docker-compose -f docker-compose.ci.yml stop gateway.niffler.dc && docker-compose -f docker-compose.ci.yml up -d --no-deps gateway.niffler.dc
docker system prune -a -f
echo "done!"
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/niffler-spend-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand All @@ -51,3 +68,8 @@ jobs:
docker-compose -f docker-compose.ci.yml stop spend.niffler.dc && docker-compose -f docker-compose.ci.yml up -d --no-deps spend.niffler.dc
docker system prune -a -f
echo "Done!"
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
29 changes: 28 additions & 1 deletion .github/workflows/niffler-userdata-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ jobs:
steps:
- name: debug
run: |
echo "debug!"
echo "### github.event.workflow_run.event: ${{ github.event.workflow_run.event }}"
echo "### github.event.workflow_run.name: ${{ github.event.workflow_run.name }}"
echo "### github.event.workflow_run.conclusion: ${{ github.event.workflow_run.conclusion }}"
echo "### github.event_path: ${{ github.event_path }}"
echo "### github.event_path result: ${{ contains(github.event_path, 'niffler-userdata/') }}"

prepare:
if: |
Expand All @@ -33,6 +38,23 @@ jobs:
runs-on: niffler-stage-runner
needs: prepare
steps:
# https://github.com/LouisBrunner/checks-action/issues/22#issuecomment-885047551
- name: Recognize sha ref
- uses: actions/checkout@master
id: sharef
run: |
if [ "$EVENT" == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ "$EVENT" == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
env:
EVENT: ${{ github.event_name }}
REF: ${{ github.ref }}
- name: Push required props to GITHUB_ENV
run: |
echo "PROFILE=staging" >> $GITHUB_ENV
Expand All @@ -58,3 +80,8 @@ jobs:
docker-compose -f docker-compose.ci.yml stop userdata.niffler.dc && docker-compose -f docker-compose.ci.yml up -d --no-deps userdata.niffler.dc
docker system prune -a -f
echo "Done!"
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion niffler-auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ tasks.register('printVersion') {
tasks.named('test') {
useJUnitPlatform()
}

1 change: 0 additions & 1 deletion niffler-userdata/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ tasks.register('printVersion') {
tasks.named('test') {
useJUnitPlatform()
}

0 comments on commit 124dc32

Please sign in to comment.