-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from qa-guru/check_e2e
check e2e
- Loading branch information
Showing
9 changed files
with
160 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,3 @@ tasks.register('printVersion') { | |
tasks.named('test') { | ||
useJUnitPlatform() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,3 @@ tasks.register('printVersion') { | |
tasks.named('test') { | ||
useJUnitPlatform() | ||
} | ||
|