From 8973cfa12422013318533936da088ac57332476d Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Fri, 10 Feb 2023 23:41:55 +0100 Subject: [PATCH 01/47] =?UTF-8?q?=D1=8B=D0=B2=D0=B0=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 92e446d..00d6eb4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -59,7 +59,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "*Pull Request:* " + "text": "* Pull Request:* " } } ], From 22cae9794a5d4f850c419c876ff6eb0e130cdb11 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 12:53:02 +0100 Subject: [PATCH 02/47] erg --- .github/workflows/test.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d42609f..b542a30 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,19 +23,9 @@ jobs: with: payload: | { - "text": "Build ready for test!", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*Pull Request:* " - } - } - ], "attachments": [ { - "pretext": "Build result: *${{job.status}}*", + "pretext": "*Pull Request:* . Build result: *${{job.status}}*", "color": "dbab09", "fields": [ { From f5d6fa24927c4e634ea047e1f702f25bb24a747b Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 12:54:31 +0100 Subject: [PATCH 03/47] rgh --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b542a30..674d83c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,7 @@ jobs: { "attachments": [ { + "text": "Optional text that appears within the attachment", "pretext": "*Pull Request:* . Build result: *${{job.status}}*", "color": "dbab09", "fields": [ From 18c35e0f4abe5eddbe93e5389ef180e08e914322 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 13:04:03 +0100 Subject: [PATCH 04/47] fgh --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 674d83c..4d5ccf8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,4 +50,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_SLACK }} - + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From 1997d6843dea8aa0fe4da7bf45f69b80005f72d9 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 13:20:05 +0100 Subject: [PATCH 05/47] dfgd --- .github/workflows/test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d5ccf8..7a06fc2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,15 +25,20 @@ jobs: { "attachments": [ { - "text": "Optional text that appears within the attachment", - "pretext": "*Pull Request:* . Build result: *${{job.status}}*", - "color": "dbab09", + "pretext": "*Pull Request:* ", + {{#if job.status == 'success'}}"color": "5DADE2",{{/if}} + {{#if job.status != 'success'}}"color": "884EA0",{{/if}} "fields": [ { "title": "OS", "short": true, "value": ":apple: iOS" }, + { + "title": "Build result", + "short": true, + "value": "${{job.status}}" + } { "title": "App Name", "short": true, From 0314916711b9f73f0907fe22aefe6fd8e5ed13c5 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 13:21:24 +0100 Subject: [PATCH 06/47] ergerg --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a06fc2..7b118fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,8 @@ jobs: "attachments": [ { "pretext": "*Pull Request:* ", - {{#if job.status == 'success'}}"color": "5DADE2",{{/if}} - {{#if job.status != 'success'}}"color": "884EA0",{{/if}} + ${{#if job.status == 'success'}}"color": "5DADE2",${{/if}} + ${{#if job.status != 'success'}}"color": "884EA0",${{/if}} "fields": [ { "title": "OS", From 19d0845efd8c937ad19c365900b6b38a015ce11e Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 13:25:20 +0100 Subject: [PATCH 07/47] fgj --- .github/workflows/codeql.yml | 91 ------------------------------------ .github/workflows/test.yml | 3 +- 2 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 00d6eb4..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [ "main" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '22 16 * * 4' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Use only 'java' to analyze code written in Java, Kotlin or both - # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - - name: Perform CodeQL Analysis - id: validation - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" - - - name: slack-send - # You may pin to the exact commit or the version. - uses: slackapi/slack-github-action@v1.23.0 - with: - payload: | - { - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "* Pull Request:* " - } - } - ], - "attachments": [ - { - "pretext": "Build result: *${{job.status}}* | ${{steps.validation.outcome}}", - "color": "dbab09", - "fields": [ - { - "title": "OS", - "short": true, - "value": "iOS" - }, - { - "title": "App Name", - "short": true, - "value": "Sonar" - }, - { - "title": "Version (Build)", - "short": true, - "value": "10.0.2 (22)" - } - ] - } - ] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_SLACK }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b118fd..d75b879 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,7 @@ jobs: "attachments": [ { "pretext": "*Pull Request:* ", - ${{#if job.status == 'success'}}"color": "5DADE2",${{/if}} - ${{#if job.status != 'success'}}"color": "884EA0",${{/if}} + "color": "dbab09", "fields": [ { "title": "OS", From e8b5606fea9db1fb5d3597e803882fe5cd76e121 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Sat, 11 Feb 2023 13:26:22 +0100 Subject: [PATCH 08/47] ergerg --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d75b879..a1b9977 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: "title": "Build result", "short": true, "value": "${{job.status}}" - } + }, { "title": "App Name", "short": true, From 4659bd318ad303aed694edabbb0bd5f762ea3259 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 08:39:33 +0100 Subject: [PATCH 09/47] test --- .github/workflows/test.yml | 71 ++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a1b9977..f592b29 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,15 +9,50 @@ on: types: [opened, ready_for_review, synchronize, labeled, reopened] jobs: deploy: - if: ${{ contains(github.event.pull_request.labels.*.name, 'ready for test') }} - timeout-minutes: 15 + if: contains(github.event.pull_request.labels.*.name, 'ready for test') name: Build & Upload Mobile Application - runs-on: macos-latest + runs-on: ubuntu-latest + timeout-minutes: 15 environment: name: Test steps: - - name: Checkout code - uses: actions/checkout@v2.1.0 + - uses: actions/checkout@v2 + - name: Set Google Credentials + env: + GOOGLE_PLAY_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }} + run: | + echo $GOOGLE_PLAY_SERVICE_ACCOUNT | base64 --decode > google_account.json + - name: Clone Certificactes Repository + uses: actions/checkout@v2 + with: + repository: waveneuroscience/certificates + token: ${{ secrets.PAT }} + path: ./keystore + + - name: Decrypt Keystore + env: + PASSPHRASE: ${{ secrets.PASSPHRASE_B2B }} + run: | + gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output application.keystore keystore/keystore/application-b2b-qa.keystore.gpg + - name: Install Deps + run: | + sudo apt-get update && sudo apt-get install libcurl3-dev + sudo gem install bundler -v 2.3.26 + bundle install + - name: Run Fastlane + env: + KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} + KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS_B2B_QA }} + KEYSTORE_ALIAS_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} + FLAVOR: 'tеst' + run: | + bundle exec fastlane android beta --env test + slack: + needs: deploy + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} + name: Slack Notification + runs-on: ubuntu-latest + steps: - name: Send slack notification uses: slackapi/slack-github-action@v1.23.0 with: @@ -31,27 +66,43 @@ jobs: { "title": "OS", "short": true, - "value": ":apple: iOS" + "value": ":robot_face: Android" }, { "title": "Build result", "short": true, - "value": "${{job.status}}" + "value": "${{jobs.deploy.status}}" }, { "title": "App Name", "short": true, - "value": "Sonal" + "value": "Sonal Teams" }, { "title": "Version (Build)", "short": true, - "value": "${{ env.FL_BUILD_VERSION }} (${{ env.FL_BUILD_NUMBER }})" + "value": "${{ env.FL_BUILD_VERSION }}" } ] } + ], + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Environment: *Test*" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Subscribtions tags: wn_android_${{jobs.deploy.status}}" + } + } ] } env: SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_SLACK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file From 0c627d254c494ea1506ea99a86757a15827caa03 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 08:44:49 +0100 Subject: [PATCH 10/47] wer --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f592b29..24cfb79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,7 +71,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{jobs.deploy.status}}" + "value": "${{needs.jobs.deploy.status}}" }, { "title": "App Name", @@ -98,7 +98,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{jobs.deploy.status}}" + "text": "Subscribtions tags: wn_android_${{needs.jobs.deploy.status}}" } } ] From e71d45c16222caeb48491dad4c2777957072409f Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 08:51:58 +0100 Subject: [PATCH 11/47] dsfgdf --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24cfb79..5ff7de5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,7 @@ jobs: sudo gem install bundler -v 2.3.26 bundle install - name: Run Fastlane + id: build env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS_B2B_QA }} @@ -71,7 +72,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{needs.jobs.deploy.status}}" + "value": "${{needs.jobs.deploy.outcome}}" }, { "title": "App Name", @@ -98,7 +99,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{needs.jobs.deploy.status}}" + "text": "Subscribtions tags: wn_android_${{needs.jobs.deploy.steps.build.outcome}}" } } ] From 3242a762cdbd2d60bb749825bf40b00d5ada8793 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 08:56:40 +0100 Subject: [PATCH 12/47] dfg --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ff7de5..604e234 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,6 @@ jobs: sudo gem install bundler -v 2.3.26 bundle install - name: Run Fastlane - id: build env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS_B2B_QA }} @@ -48,6 +47,7 @@ jobs: FLAVOR: 'tеst' run: | bundle exec fastlane android beta --env test + FASTLANE_JOB_STATUS="${{ job.status }}" slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} @@ -72,7 +72,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{needs.jobs.deploy.outcome}}" + "value": "$FASTLANE_JOB_STATUS" }, { "title": "App Name", @@ -99,7 +99,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{needs.jobs.deploy.steps.build.outcome}}" + "text": "Subscribtions tags: wn_android_$FASTLANE_JOB_STATUS" } } ] From 639fbf2cd52d44255c786cad74308ffbf6219f2f Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 08:57:59 +0100 Subject: [PATCH 13/47] fgdf --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 604e234..621599f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,7 +72,7 @@ jobs: { "title": "Build result", "short": true, - "value": "$FASTLANE_JOB_STATUS" + "value": "${{ FASTLANE_JOB_STATUS }}" }, { "title": "App Name", @@ -99,7 +99,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_$FASTLANE_JOB_STATUS" + "text": "Subscribtions tags: wn_android_${{ env.FASTLANE_JOB_STATUS}}" } } ] From 01d222461a5aa4172c4ca7459b22b8f98f99f208 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 08:59:33 +0100 Subject: [PATCH 14/47] thjtgh --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 621599f..dcd92a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,7 +72,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{ FASTLANE_JOB_STATUS }}" + "value": "${{ env.FASTLANE_JOB_STATUS }}" }, { "title": "App Name", From c25ca282fe14d2d4a693c8ee24d1dae3b6a9ce58 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:07:17 +0100 Subject: [PATCH 15/47] erg --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dcd92a2..666ac01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,7 +47,7 @@ jobs: FLAVOR: 'tеst' run: | bundle exec fastlane android beta --env test - FASTLANE_JOB_STATUS="${{ job.status }}" + BUILD_STATUS="${{ job.status }}" slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} @@ -72,7 +72,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{ env.FASTLANE_JOB_STATUS }}" + "value": "$BUILD_STATUS" }, { "title": "App Name", @@ -99,11 +99,13 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ env.FASTLANE_JOB_STATUS}}" + "text": "Subscribtions tags: wn_android_${{ env.BUILD_STATUS}}" } } ] } env: SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_SLACK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK +env: + BUILD_STATUS: '-/-' \ No newline at end of file From f19bcd4021da68803f0facdc68b588fcc23fad57 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:16:50 +0100 Subject: [PATCH 16/47] sfgdfg --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 666ac01..3ca8e06 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,7 @@ jobs: sudo gem install bundler -v 2.3.26 bundle install - name: Run Fastlane + id: fastlane env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS_B2B_QA }} @@ -47,7 +48,8 @@ jobs: FLAVOR: 'tеst' run: | bundle exec fastlane android beta --env test - BUILD_STATUS="${{ job.status }}" + outputs: + build_status: ${{ steps.fastlane.status }} slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} @@ -82,7 +84,7 @@ jobs: { "title": "Version (Build)", "short": true, - "value": "${{ env.FL_BUILD_VERSION }}" + "value": "${{ needs.deploy.outputs.build_status }}" } ] } @@ -99,13 +101,11 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ env.BUILD_STATUS}}" + "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }}" } } ] } env: SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_SLACK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK -env: - BUILD_STATUS: '-/-' \ No newline at end of file + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file From 8aec9572d95b80a12c3b95bdcae4c4d6abdf8321 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:23:54 +0100 Subject: [PATCH 17/47] er --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ca8e06..301b842 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,7 +74,7 @@ jobs: { "title": "Build result", "short": true, - "value": "$BUILD_STATUS" + "value": "${{ needs.deploy.outputs.build_status }}" }, { "title": "App Name", @@ -84,7 +84,7 @@ jobs: { "title": "Version (Build)", "short": true, - "value": "${{ needs.deploy.outputs.build_status }}" + "value": "${{ env.FL_BUILD_VERSION }}" } ] } @@ -101,7 +101,8 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }}" + "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }} ${{needs.deploy.outcome}}" +" } } ] From b5fbdab975566344ba018e0ee1613b257df4b69d Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:25:14 +0100 Subject: [PATCH 18/47] erhger --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 301b842..b48a241 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,7 +102,6 @@ jobs: "text": { "type": "mrkdwn", "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }} ${{needs.deploy.outcome}}" -" } } ] From 6e2d4037bf9368a1551b6e56f8326e31aebb9a14 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:29:10 +0100 Subject: [PATCH 19/47] erg --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b48a241..6cc4f63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -101,7 +101,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }} ${{needs.deploy.outcome}}" + "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }} ${{job.status}}" } } ] From a3700d830e34621d5340b1bcb4ab931c5c506c00 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:40:51 +0100 Subject: [PATCH 20/47] ert --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6cc4f63..5826734 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,7 @@ jobs: run: | bundle exec fastlane android beta --env test outputs: - build_status: ${{ steps.fastlane.status }} + build_status: ${{ jobs.fastlane.status }} slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} From ff0a266539a90a131c77d582e6bfd9118cf66ebc Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:41:44 +0100 Subject: [PATCH 21/47] rtrt --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5826734..6cc4f63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,7 @@ jobs: run: | bundle exec fastlane android beta --env test outputs: - build_status: ${{ jobs.fastlane.status }} + build_status: ${{ steps.fastlane.status }} slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} From c24fe7ce46e03caa2c7e9486d131a5cbe918eb6a Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:42:42 +0100 Subject: [PATCH 22/47] er --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6cc4f63..fd30f99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,7 @@ jobs: run: | bundle exec fastlane android beta --env test outputs: - build_status: ${{ steps.fastlane.status }} + build_status: "111" slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} From dd269cccf1402bf0813fef809fc778ba70e74477 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 09:47:51 +0100 Subject: [PATCH 23/47] ergerg --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd30f99..660e41a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,9 +47,13 @@ jobs: KEYSTORE_ALIAS_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} FLAVOR: 'tеst' run: | + FL_STATUS = "was started" bundle exec fastlane android beta --env test + - name: Export build status + run: + FL_STATUS = ${{job.status}} outputs: - build_status: "111" + build_status: $FL_STATUS slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} From 97c0d29d3ebd072e1af66aca5a5af81f5f10a38b Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:03:42 +0100 Subject: [PATCH 24/47] fdg --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 660e41a..12aab17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,7 @@ jobs: env: GOOGLE_PLAY_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }} run: | + echo DEPLOY_STATUS='failed' >> $GITHUB_ENV echo $GOOGLE_PLAY_SERVICE_ACCOUNT | base64 --decode > google_account.json - name: Clone Certificactes Repository uses: actions/checkout@v2 @@ -51,9 +52,7 @@ jobs: bundle exec fastlane android beta --env test - name: Export build status run: - FL_STATUS = ${{job.status}} - outputs: - build_status: $FL_STATUS + echo DEPLOY_STATUS=${{job.status}} >> $GITHUB_ENV slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} @@ -78,7 +77,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{ needs.deploy.outputs.build_status }}" + "value": "${{ env.DEPLOY_STATUS }}" }, { "title": "App Name", @@ -105,7 +104,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.build_status }} ${{job.status}}" + "text": "Subscribtions tags: wn_android_${{ env.DEPLOY_STATUS }}" } } ] From d2d16beb11b043d83b78962937a1a8af994229b4 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:05:02 +0100 Subject: [PATCH 25/47] gh --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12aab17..5804031 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,7 +52,7 @@ jobs: bundle exec fastlane android beta --env test - name: Export build status run: - echo DEPLOY_STATUS=${{job.status}} >> $GITHUB_ENV + echo DEPLOY_STATUS2=${{job.status}} >> $GITHUB_ENV slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} From 28810f6c02c49e47c2ad63770bfc30763d873c11 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:14:26 +0100 Subject: [PATCH 26/47] fg --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5804031..7e26a32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,11 +48,12 @@ jobs: KEYSTORE_ALIAS_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} FLAVOR: 'tеst' run: | - FL_STATUS = "was started" bundle exec fastlane android beta --env test - name: Export build status run: + echo "Job status: ${{job.status}}" echo DEPLOY_STATUS2=${{job.status}} >> $GITHUB_ENV + echo "::set-env name=DEPLOY_STATUS::{{ job.status }}" slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} From 6ee520319f8c056ddf64c5709798d65ed51e4bab Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:15:24 +0100 Subject: [PATCH 27/47] rg --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e26a32..ab9d4fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,7 +52,6 @@ jobs: - name: Export build status run: echo "Job status: ${{job.status}}" - echo DEPLOY_STATUS2=${{job.status}} >> $GITHUB_ENV echo "::set-env name=DEPLOY_STATUS::{{ job.status }}" slack: needs: deploy From 9a50d53851b011c52c2e0a6fe9fa9814a1e69dea Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:16:28 +0100 Subject: [PATCH 28/47] erger --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab9d4fc..9f3aa05 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,7 +51,7 @@ jobs: bundle exec fastlane android beta --env test - name: Export build status run: - echo "Job status: ${{job.status}}" + echo "Job status - ${{ job.status }}" echo "::set-env name=DEPLOY_STATUS::{{ job.status }}" slack: needs: deploy From d1f78042848f1926608ed981363ad120c15d2d38 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:18:31 +0100 Subject: [PATCH 29/47] erg --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f3aa05..7ef16fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,6 +50,7 @@ jobs: run: | bundle exec fastlane android beta --env test - name: Export build status + if: ${{ always() }} run: echo "Job status - ${{ job.status }}" echo "::set-env name=DEPLOY_STATUS::{{ job.status }}" From 30fa1a695aa6ea9355337ca48dbd9bdc0a0b56c8 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:30:23 +0100 Subject: [PATCH 30/47] dfg --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ef16fc..0a6bc8b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,8 @@ on: types: [opened, ready_for_review, synchronize, labeled, reopened] jobs: deploy: + outputs: + jobstatus: ${{ job.status }} if: contains(github.event.pull_request.labels.*.name, 'ready for test') name: Build & Upload Mobile Application runs-on: ubuntu-latest @@ -53,6 +55,7 @@ jobs: if: ${{ always() }} run: echo "Job status - ${{ job.status }}" + echo "History status - " echo "::set-env name=DEPLOY_STATUS::{{ job.status }}" slack: needs: deploy @@ -60,6 +63,8 @@ jobs: name: Slack Notification runs-on: ubuntu-latest steps: + - name: Test + run: echo "Test - ${{ needs.deploy.outputs.jobstatus }}" - name: Send slack notification uses: slackapi/slack-github-action@v1.23.0 with: From df86ee39c7fbe5bb7b5aee28f7b274c91678a787 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Wed, 15 Feb 2023 20:33:22 +0100 Subject: [PATCH 31/47] clear test --- .github/workflows/test.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a6bc8b..2a0b1b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,6 @@ jobs: env: GOOGLE_PLAY_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }} run: | - echo DEPLOY_STATUS='failed' >> $GITHUB_ENV echo $GOOGLE_PLAY_SERVICE_ACCOUNT | base64 --decode > google_account.json - name: Clone Certificactes Repository uses: actions/checkout@v2 @@ -51,20 +50,12 @@ jobs: FLAVOR: 'tеst' run: | bundle exec fastlane android beta --env test - - name: Export build status - if: ${{ always() }} - run: - echo "Job status - ${{ job.status }}" - echo "History status - " - echo "::set-env name=DEPLOY_STATUS::{{ job.status }}" slack: needs: deploy if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} name: Slack Notification runs-on: ubuntu-latest steps: - - name: Test - run: echo "Test - ${{ needs.deploy.outputs.jobstatus }}" - name: Send slack notification uses: slackapi/slack-github-action@v1.23.0 with: @@ -83,7 +74,7 @@ jobs: { "title": "Build result", "short": true, - "value": "${{ env.DEPLOY_STATUS }}" + "value": "${{ needs.deploy.outputs.jobstatus }}" }, { "title": "App Name", @@ -110,7 +101,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ env.DEPLOY_STATUS }}" + "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.jobstatus }}" } } ] From 18bf0c072d390a2f7781626c3cd59efbab600ae2 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Tue, 21 Feb 2023 18:07:27 +0100 Subject: [PATCH 32/47] fdf --- .github/workflows/test.yml | 87 +++++++++++++++---------------- package.json | 103 +++++++++++++++++++++++++++++++++++++ 2 files changed, 147 insertions(+), 43 deletions(-) create mode 100644 package.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a0b1b2..ba485e3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,54 +5,60 @@ concurrency: on: workflow_dispatch: pull_request: - branches: [main] + branches: [develop] types: [opened, ready_for_review, synchronize, labeled, reopened] jobs: deploy: outputs: jobstatus: ${{ job.status }} + build_version: ${{ env.VERSION_INFORMATION }} if: contains(github.event.pull_request.labels.*.name, 'ready for test') - name: Build & Upload Mobile Application runs-on: ubuntu-latest - timeout-minutes: 15 + name: Build & Upload Web Application environment: name: Test + url: https://wn.repmvbx.xyz/ steps: - - uses: actions/checkout@v2 - - name: Set Google Credentials - env: - GOOGLE_PLAY_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }} + - name: Checkout Code + uses: actions/checkout@v1 + - name: Get build version info run: | - echo $GOOGLE_PLAY_SERVICE_ACCOUNT | base64 --decode > google_account.json - - name: Clone Certificactes Repository - uses: actions/checkout@v2 + echo "VERSION_INFORMATION=$(jq -c . < ./package.json)" >> $GITHUB_ENV + - uses: actions/setup-node@v3 with: - repository: waveneuroscience/certificates - token: ${{ secrets.PAT }} - path: ./keystore - - - name: Decrypt Keystore + node-version: 16.18.0 + - name: Install Dependencies + run: npm ci + - name: Build Bundle env: - PASSPHRASE: ${{ secrets.PASSPHRASE_B2B }} - run: | - gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output application.keystore keystore/keystore/application-b2b-qa.keystore.gpg - - name: Install Deps + CI: false + REACT_APP_USER_POOL_ID: ${{ secrets.USER_POOL_ID }} + REACT_APP_CLIENT_ID: ${{ secrets.CLIENT_ID }} + REACT_APP_API_URL: ${{ secrets.API_URL }} + REACT_APP_ENV: ${{ secrets.ENV }} + REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }} run: | - sudo apt-get update && sudo apt-get install libcurl3-dev - sudo gem install bundler -v 2.3.26 - bundle install - - name: Run Fastlane - id: fastlane + npm run build + - name: Upload Bundle + uses: jakejarvis/s3-sync-action@master + with: + args: --acl public-read --delete env: - KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} - KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS_B2B_QA }} - KEYSTORE_ALIAS_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD_B2B_QA }} - FLAVOR: 'tеst' - run: | - bundle exec fastlane android beta --env test + AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + SOURCE_DIR: "build" + - name: Invalidate CloudFront Distribution + uses: chetan/invalidate-cloudfront-action@master + env: + AWS_REGION: ${{ secrets.AWS_REGION }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + DISTRIBUTION: ${{ secrets.DISTRIBUTION }} + PATHS: '/*' slack: - needs: deploy - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} + needs: [deploy] + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && ${{ needs.deploy.outputs.jobstatus }} != '' name: Slack Notification runs-on: ubuntu-latest steps: @@ -63,14 +69,9 @@ jobs: { "attachments": [ { - "pretext": "*Pull Request:* ", + "pretext": "*Pull Request:* ", "color": "dbab09", "fields": [ - { - "title": "OS", - "short": true, - "value": ":robot_face: Android" - }, { "title": "Build result", "short": true, @@ -79,12 +80,12 @@ jobs: { "title": "App Name", "short": true, - "value": "Sonal Teams" + "value": "Waveneuro consumer frontend" }, { - "title": "Version (Build)", + "title": "Version", "short": true, - "value": "${{ env.FL_BUILD_VERSION }}" + "value": "${{ fromJson(needs.deploy.outputs.build_version).version }}" } ] } @@ -101,11 +102,11 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Subscribtions tags: wn_android_${{ needs.deploy.outputs.jobstatus }}" + "text": "Subscriptions tags: wn_frontend_${{ needs.deploy.outputs.jobstatus }}" } } ] } env: SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_SLACK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK \ No newline at end of file + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK diff --git a/package.json b/package.json new file mode 100644 index 0000000..77bbd71 --- /dev/null +++ b/package.json @@ -0,0 +1,103 @@ +{ + "name": "commercial-frontend", + "version": "1.21.2", + "private": true, + "scripts": { + "start": "npm run test-env", + "test-env": "node scripts/removeSourceMapsWarning.js && NODE_ENV=test react-scripts start", + "dev-env": "node scripts/removeSourceMapsWarning.js && NODE_ENV=dev react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test --coverage 'a'", + "eject": "react-scripts eject", + "lint": "eslint src/**/*.ts*", + "lint:fix": "eslint src/**/*.ts* --fix", + "prettier": "prettier --check src/**", + "prettier:fix": "prettier --write src/**" + }, + "dependencies": { + "@sentry/react": "^7.16.0", + "@sentry/tracing": "^7.16.0", + "@szhsin/react-menu": "^1.10.1", + "@testing-library/jest-dom": "^5.12.0", + "@testing-library/react": "^12.1.5", + "@types/lodash.isequal": "^4.5.5", + "@types/ramda": "^0.27.61", + "@types/react": "^17.0.4", + "@types/react-avatar-editor": "^10.3.6", + "@types/react-datepicker": "^4.8.0", + "@types/react-dom": "^17.0.3", + "@types/react-input-mask": "^3.0.1", + "@types/react-modal": "^3.12.0", + "@types/react-router-dom": "^5.1.7", + "@types/react-select": "^4.0.15", + "@types/react-table": "^7.7.0", + "@types/react-toggle": "^4.0.2", + "@typescript-eslint/eslint-plugin": "^4.22.0", + "@typescript-eslint/parser": "^4.22.0", + "amazon-cognito-identity-js": "^6.0.1", + "autoprefixer": "^9.8.6", + "axios": "^0.21.2", + "babel-eslint": "^10.1.0", + "date-fns": "^2.22.1", + "eslint-config-airbnb": "^18.2.1", + "eslint-config-prettier": "^8.3.0", + "eslint-config-react-app": "^6.0.0", + "eslint-import-resolver-typescript": "^2.4.0", + "eslint-plugin-flowtype": "^5.7.2", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-prettier": "^3.4.0", + "eslint-plugin-react": "^7.23.2", + "eslint-plugin-react-hooks": "^4.2.0", + "formik": "^2.2.6", + "history": "^5.3.0", + "html-to-image": "^1.7.0", + "jspdf": "^2.3.1", + "lodash.isequal": "^4.5.0", + "mockdate": "^3.0.5", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-preset-env": "^7.8.3", + "prettier": "2.2.1", + "ramda": "^0.27.1", + "react": "^17.0.2", + "react-avatar-editor": "^12.0.0", + "react-datepicker": "^4.8.0", + "react-day-picker": "^7.4.10", + "react-debounce-input": "^3.2.5", + "react-dom": "^17.0.2", + "react-dropzone": "^11.5.1", + "react-helmet-async": "^1.0.9", + "react-idle-timer": "^5.2.0", + "react-infinite-scroll-component": "^6.1.0", + "react-input-mask": "^2.0.4", + "react-input-pin-code": "^1.2.0", + "react-loader-spinner": "^4.0.0", + "react-modal": "^3.13.1", + "react-qr-code": "^2.0.7", + "react-router": "^5.2.0", + "react-router-dom": "^5.2.0", + "react-scripts": "^5.0.1", + "react-select": "^4.3.1", + "react-spinners": "^0.11.0", + "react-table": "^7.7.0", + "react-toastify": "^7.0.4", + "react-toggle": "^4.1.2", + "react-tooltip": "^4.2.19", + "recharts": "^2.4.1", + "tailwindcss": "^3.2.4", + "typescript": "^4.2.4", + "yup": "^0.32.9" + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + } +} From 3ef5a2187ba1ce0e04a58b4ce2bfa1620699eb7d Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Tue, 21 Feb 2023 18:11:05 +0100 Subject: [PATCH 33/47] erg --- .github/config/slack.yml | 59 -------------------------------------- .github/workflows/test.yml | 2 +- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 .github/config/slack.yml diff --git a/.github/config/slack.yml b/.github/config/slack.yml deleted file mode 100644 index 98ab618..0000000 --- a/.github/config/slack.yml +++ /dev/null @@ -1,59 +0,0 @@ -username: GitHub-CI -icon_url: https://octodex.github.com/images/mona-the-rivetertocat.png - -pretext: Triggered via {{eventName}} by {{actor}} {{or action "action"}} {{ref}} `{{diffRef}}` -title: GitHub Actions -title_link: https://support.github.com - -text: | - *<{{workflowRunUrl}}|Workflow _{{workflow}}_ job _{{jobName}}_ triggered by _{{eventName}}_ is _{{jobStatus}}_>* for <{{refUrl}}|`{{ref}}`> - {{#if description}}<{{diffUrl}}|`{{diffRef}}`> - {{description}}{{/if}} - {{#if payload.commits}} - *Commits* - {{#each payload.commits}} - <{{this.url}}|`{{truncate this.id 8}}`> - {{this.message}} - {{/each}} - {{/if}} - -fallback: |- - [GitHub] {{workflow}} #{{runNumber}} {{jobName}} is {{jobStatus}} - -fields: - - title: Job Steps - value: "{{#each jobSteps}}{{icon this.outcome}} {{@key}}\n{{/each}}" - short: false - - title: Workflow - value: "<{{workflowUrl}}|{{workflow}}>" - short: true - - title: Git Ref - value: "{{ref}} ({{refType}})" - short: true - - title: Run ID - value: |- - <{{workflowRunUrl}}|{{runId}}> - short: true - - title: Run Number - value: "{{runNumber}}" - short: true - - title: Actor - value: "{{actor}}" - short: true - - title: Job Status - value: "{{jobStatus}}" - short: true - -footer: >- - <{{repositoryUrl}}|{{repositoryName}}> {{workflow}} #{{runNumber}} - -colors: - success: '#5DADE2' - failure: '#884EA0' - cancelled: '#A569BD' - default: '#7D3C98' - -icons: - success: ':white_check_mark:' - failure: ':grimacing:' - cancelled: ':x:' - skipped: ':heavy_minus_sign:' - default: ':interrobang:' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba485e3..a348aa7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ concurrency: on: workflow_dispatch: pull_request: - branches: [develop] + branches: [main] types: [opened, ready_for_review, synchronize, labeled, reopened] jobs: deploy: From 2aa3160d1bd54589dc00ee0f6b4d056c6b461c65 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:21:54 +0100 Subject: [PATCH 34/47] ergde --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a348aa7..5a2a49f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: outputs: jobstatus: ${{ job.status }} build_version: ${{ env.VERSION_INFORMATION }} - if: contains(github.event.pull_request.labels.*.name, 'ready for test') + if: contains(github.event.pull_request.labels.*.name, 'ready2 for test') runs-on: ubuntu-latest name: Build & Upload Web Application environment: From ec4894251bc75e92312912e5d4e838f664ced73f Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:30:35 +0100 Subject: [PATCH 35/47] fdgb --- .github/workflows/test.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a2a49f..a8dfb73 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,9 +21,6 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v1 - - name: Get build version info - run: | - echo "VERSION_INFORMATION=$(jq -c . < ./package.json)" >> $GITHUB_ENV - uses: actions/setup-node@v3 with: node-version: 16.18.0 @@ -58,10 +55,15 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && ${{ needs.deploy.outputs.jobstatus }} != '' + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && ${{ needs.deploy.outputs.jobstatus }} != null name: Slack Notification runs-on: ubuntu-latest steps: + - name: Checkout Code + uses: actions/checkout@v1 + - name: Get build version info + run: | + echo "VERSION_INFORMATION=$(jq -c . < ./package.json)" >> $GITHUB_ENV - name: Send slack notification uses: slackapi/slack-github-action@v1.23.0 with: @@ -85,7 +87,7 @@ jobs: { "title": "Version", "short": true, - "value": "${{ fromJson(needs.deploy.outputs.build_version).version }}" + "value": "${{ fromJson( env.VERSION_INFORMATION ).version }}" } ] } From 197dd95e96079ea0c258a8e5b07c7462c4cd3e11 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:41:11 +0100 Subject: [PATCH 36/47] erger --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a8dfb73..9df07e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,6 @@ jobs: deploy: outputs: jobstatus: ${{ job.status }} - build_version: ${{ env.VERSION_INFORMATION }} if: contains(github.event.pull_request.labels.*.name, 'ready2 for test') runs-on: ubuntu-latest name: Build & Upload Web Application @@ -55,7 +54,7 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && ${{ needs.deploy.outputs.jobstatus }} != null + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && needs.deploy.result != 'skipped' && needs.deploy.result != 'cancelled' name: Slack Notification runs-on: ubuntu-latest steps: From 007ee1d2847aac772be12e1a18d5781cdd4de171 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:43:04 +0100 Subject: [PATCH 37/47] eg --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9df07e1..d50503e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && needs.deploy.result != 'skipped' && needs.deploy.result != 'cancelled' + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && (needs.deploy.result == 'success' || needs.deploy.result == 'failed') name: Slack Notification runs-on: ubuntu-latest steps: From a2f9de63ea0b764d3e0683f260016286b4ec745f Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:45:17 +0100 Subject: [PATCH 38/47] ergerv --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d50503e..f850009 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && (needs.deploy.result == 'success' || needs.deploy.result == 'failed') + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && (needs.deploy.outputs.jobstatus == 'success' || needs.deploy.outputs.jobstatus == 'failed') name: Slack Notification runs-on: ubuntu-latest steps: From 487be73656889484be743112fd7fdad0124bf9a2 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:46:49 +0100 Subject: [PATCH 39/47] sdfbdgb --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f850009..80fe7dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && (needs.deploy.outputs.jobstatus == 'success' || needs.deploy.outputs.jobstatus == 'failed') + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && (${{failure()}} || ${{success()}} ) && (needs.deploy.outputs.jobstatus == 'success' || needs.deploy.outputs.jobstatus == 'failed') name: Slack Notification runs-on: ubuntu-latest steps: From ac3ae10d86ac91962364ff06aca1a44afe447adc Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:48:32 +0100 Subject: [PATCH 40/47] rbsa --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 80fe7dd..0e2a5e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && (${{failure()}} || ${{success()}} ) && (needs.deploy.outputs.jobstatus == 'success' || needs.deploy.outputs.jobstatus == 'failed') + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ( failure() || success() ) && (needs.deploy.outputs.jobstatus == 'success' || needs.deploy.outputs.jobstatus == 'failed') name: Slack Notification runs-on: ubuntu-latest steps: From 60fdc5dbe7d6cdf26dad3e9145ea61f224e1abbe Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:49:37 +0100 Subject: [PATCH 41/47] fgbfdgb --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e2a5e2..ce769b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: deploy: outputs: jobstatus: ${{ job.status }} - if: contains(github.event.pull_request.labels.*.name, 'ready2 for test') + if: contains(github.event.pull_request.labels.*.name, 'ready for test') runs-on: ubuntu-latest name: Build & Upload Web Application environment: From 9e9df8627abf44d7ea7cc16a0aa46540587baea2 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:52:18 +0100 Subject: [PATCH 42/47] dfbsbsv --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce769b7..b17d68c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,7 +54,7 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ( failure() || success() ) && (needs.deploy.outputs.jobstatus == 'success' || needs.deploy.outputs.jobstatus == 'failed') + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && ( failure() || success() ) name: Slack Notification runs-on: ubuntu-latest steps: From cf89094211c0f159a454c832df70648038c28065 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:54:04 +0100 Subject: [PATCH 43/47] dfbdb --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b17d68c..0f5f361 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: deploy: outputs: jobstatus: ${{ job.status }} - if: contains(github.event.pull_request.labels.*.name, 'ready for test') + if: contains(github.event.pull_request.labels.*.name, 'ready2 for test') runs-on: ubuntu-latest name: Build & Upload Web Application environment: From 35d4d7945f3b8f3603398de589309efeb89b4027 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:57:22 +0100 Subject: [PATCH 44/47] dbdfb --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f5f361..a9d826e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,16 +54,19 @@ jobs: PATHS: '/*' slack: needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} && ( failure() || success() ) + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} name: Slack Notification runs-on: ubuntu-latest steps: - name: Checkout Code + if: failure() || success() uses: actions/checkout@v1 - name: Get build version info + if: failure() || success() run: | echo "VERSION_INFORMATION=$(jq -c . < ./package.json)" >> $GITHUB_ENV - name: Send slack notification + if: failure() || success() uses: slackapi/slack-github-action@v1.23.0 with: payload: | From 6f848e83b726f0b728a8812e099495c9c24afb09 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 08:59:09 +0100 Subject: [PATCH 45/47] dbg --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9d826e..413e52b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,14 +59,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - if: failure() || success() + if: ${{ needs.deploy.outputs.jobstatus }} == "success" || ${{ needs.deploy.outputs.jobstatus }} == "failure" uses: actions/checkout@v1 - name: Get build version info - if: failure() || success() + if: ${{ needs.deploy.outputs.jobstatus }} == "success" || ${{ needs.deploy.outputs.jobstatus }} == "failure" run: | echo "VERSION_INFORMATION=$(jq -c . < ./package.json)" >> $GITHUB_ENV - name: Send slack notification - if: failure() || success() + if: ${{ needs.deploy.outputs.jobstatus }} == "success" || ${{ needs.deploy.outputs.jobstatus }} == "failure" uses: slackapi/slack-github-action@v1.23.0 with: payload: | From b0a65b4381bf7b5cafc272b6ea637101008e1754 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 09:05:17 +0100 Subject: [PATCH 46/47] dfbd --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 413e52b..a7f4d5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,20 +53,19 @@ jobs: DISTRIBUTION: ${{ secrets.DISTRIBUTION }} PATHS: '/*' slack: + continue-on-error: true needs: [deploy] - if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ${{ always() }} + if: contains(github.event.pull_request.labels.*.name, 'ready for test') && ( failure() || success() ) name: Slack Notification runs-on: ubuntu-latest steps: - name: Checkout Code - if: ${{ needs.deploy.outputs.jobstatus }} == "success" || ${{ needs.deploy.outputs.jobstatus }} == "failure" + if: uses: actions/checkout@v1 - name: Get build version info - if: ${{ needs.deploy.outputs.jobstatus }} == "success" || ${{ needs.deploy.outputs.jobstatus }} == "failure" run: | echo "VERSION_INFORMATION=$(jq -c . < ./package.json)" >> $GITHUB_ENV - name: Send slack notification - if: ${{ needs.deploy.outputs.jobstatus }} == "success" || ${{ needs.deploy.outputs.jobstatus }} == "failure" uses: slackapi/slack-github-action@v1.23.0 with: payload: | From ee7996baaaa16b635e6e9ef61404a670478acd90 Mon Sep 17 00:00:00 2001 From: Yauhen Panimatchanka Date: Thu, 23 Feb 2023 09:06:11 +0100 Subject: [PATCH 47/47] dfb --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7f4d5f..0a85970 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: deploy: outputs: jobstatus: ${{ job.status }} - if: contains(github.event.pull_request.labels.*.name, 'ready2 for test') + if: contains(github.event.pull_request.labels.*.name, 'ready for test') runs-on: ubuntu-latest name: Build & Upload Web Application environment: