diff --git a/.github/workflows/automerge-release.yaml b/.github/workflows/automerge-release.yaml index 6df657d1467..681490f6d29 100644 --- a/.github/workflows/automerge-release.yaml +++ b/.github/workflows/automerge-release.yaml @@ -32,7 +32,7 @@ jobs: service_account: ${{ secrets.SA_IDENTITY_POOL }} secrets_name: |- TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -42,7 +42,7 @@ jobs: - name: Set ENV Variables run: |- echo "DEVBOT_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_DEVBOT_TOKEN }}" >> $GITHUB_ENV - + - name: Merge pull request if the release is not major uses: actions/github-script@v6 with: diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 432a1597125..b111be8a360 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,7 +5,7 @@ on: pull_request: branches: - master # triggers the flow for every PR to master - - 'feature/**' # triggers the flow for a PR to a branch like feature/v9 + - "feature/**" # triggers the flow for a PR to a branch like feature/v9 types: - synchronize # PR was updated @@ -49,7 +49,7 @@ jobs: TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN TOPTAL_TRIGGERBOT_BUILD_TOKEN:toptal-ci/TOPTAL_TRIGGERBOT_BUILD_TOKEN TOPTAL_TRIGGERBOT_USERNAME:toptal-ci/TOPTAL_TRIGGERBOT_USERNAME - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -66,7 +66,7 @@ jobs: echo "JENKINS_USER=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_USERNAME }}" >> $GITHUB_ENV echo "JENKINS_BUILD_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}" >> $GITHUB_ENV echo "PROXY=${{ steps.parse_secrets.outputs.HTTP_PROXY }}" >> $GITHUB_ENV - + - uses: toptal/davinci-github-actions/build-push-image@v12.0.0 env: GITHUB_TOKEN: ${{ env.TOPTAL_DEVBOT_TOKEN }} @@ -106,7 +106,7 @@ jobs: TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN TOPTAL_TRIGGERBOT_BUILD_TOKEN:toptal-ci/TOPTAL_TRIGGERBOT_BUILD_TOKEN TOPTAL_TRIGGERBOT_USERNAME:toptal-ci/TOPTAL_TRIGGERBOT_USERNAME - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -123,7 +123,7 @@ jobs: echo "JENKINS_USER=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_USERNAME }}" >> $GITHUB_ENV echo "JENKINS_BUILD_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}" >> $GITHUB_ENV echo "PROXY=${{ steps.parse_secrets.outputs.HTTP_PROXY }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: @@ -186,7 +186,7 @@ jobs: HAPPO_API_SECRET:toptal-ci/PICASSO_HAPPO_API_SECRET NPM_TOKEN:toptal-ci/NPM_TOKEN TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -199,7 +199,7 @@ jobs: echo "NPM_TOKEN=${{ steps.parse_secrets.outputs.NPM_TOKEN }}" >> $GITHUB_ENV echo "HAPPO_API_KEY=${{ steps.parse_secrets.outputs.HAPPO_API_KEY }}" >> $GITHUB_ENV echo "HAPPO_API_SECRET=${{ steps.parse_secrets.outputs.HAPPO_API_SECRET }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: @@ -246,7 +246,7 @@ jobs: TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN TOPTAL_TRIGGERBOT_BUILD_TOKEN:toptal-ci/TOPTAL_TRIGGERBOT_BUILD_TOKEN TOPTAL_TRIGGERBOT_USERNAME:toptal-ci/TOPTAL_TRIGGERBOT_USERNAME - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -263,7 +263,7 @@ jobs: echo "JENKINS_USER=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_USERNAME }}" >> $GITHUB_ENV echo "JENKINS_BUILD_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}" >> $GITHUB_ENV echo "PROXY=${{ steps.parse_secrets.outputs.HTTP_PROXY }}" >> $GITHUB_ENV - + - name: Trigger doc deployment job uses: toptal/jenkins-job-trigger-action@1.0.1 env: @@ -280,7 +280,7 @@ jobs: "BRANCH": "${{ env.BRANCH }}", "PR_ID": "${{ env.PR_ID }}" } - job_timeout: '3600' + job_timeout: "3600" - name: Create Jira Deployment uses: toptal/davinci-github-actions/create-jira-deployment@v12.0.0 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ecfca1958c4..81be51b0dc6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,15 +1,15 @@ -name: 'CodeQL' +name: "CodeQL" env: LANGUAGE: javascript on: push: - branches: ['master'] + branches: ["master"] pull_request: - branches: ['master'] + branches: ["master"] paths-ignore: - - '**/*.md' + - "**/*.md" jobs: analyze: diff --git a/.github/workflows/danger.yaml b/.github/workflows/danger.yaml index db586130278..25b66503eba 100644 --- a/.github/workflows/danger.yaml +++ b/.github/workflows/danger.yaml @@ -32,7 +32,7 @@ jobs: service_account: ${{ secrets.SA_IDENTITY_POOL }} secrets_name: |- TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -42,7 +42,7 @@ jobs: - name: Set ENV Variables run: |- echo "GITHUB_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_DEVBOT_TOKEN }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/davinci-alpha-package.yml b/.github/workflows/davinci-alpha-package.yml index 061979f4823..3e08ce1ff3c 100644 --- a/.github/workflows/davinci-alpha-package.yml +++ b/.github/workflows/davinci-alpha-package.yml @@ -33,7 +33,7 @@ jobs: TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN TOPTAL_TRIGGERBOT_BUILD_TOKEN:toptal-ci/TOPTAL_TRIGGERBOT_BUILD_TOKEN TOPTAL_TRIGGERBOT_USERNAME:toptal-ci/TOPTAL_TRIGGERBOT_USERNAME - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@ci-add-gsm-actions-to-public-repos @@ -44,7 +44,7 @@ jobs: run: |- echo "GITHUB_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_DEVBOT_TOKEN }}" >> $GITHUB_ENV echo "NPM_TOKEN=${{ steps.parse_secrets.outputs.NPM_TOKEN_PUBLISH }}" >> $GITHUB_ENV - + - name: Feedback on action started uses: actions/github-script@v6 with: diff --git a/.github/workflows/davinci-integration-tests.yml b/.github/workflows/davinci-integration-tests.yml index fbb5685bb97..b9426e82c26 100644 --- a/.github/workflows/davinci-integration-tests.yml +++ b/.github/workflows/davinci-integration-tests.yml @@ -37,7 +37,7 @@ jobs: HAPPO_API_SECRET:toptal-ci/PICASSO_HAPPO_API_SECRET NPM_TOKEN:toptal-ci/NPM_TOKEN TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -50,7 +50,7 @@ jobs: echo "NPM_TOKEN=${{ steps.parse_secrets.outputs.NPM_TOKEN }}" >> $GITHUB_ENV echo "HAPPO_API_KEY=${{ steps.parse_secrets.outputs.HAPPO_API_KEY }}" >> $GITHUB_ENV echo "HAPPO_API_SECRET=${{ steps.parse_secrets.outputs.HAPPO_API_SECRET }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: @@ -64,7 +64,7 @@ jobs: - name: Cache built packages uses: actions/cache@v3 with: - path: 'packages/**/dist-package' + path: "packages/**/dist-package" key: ${{ runner.os }}-pkgs-${{ github.run_id }} }} integration-tests: @@ -96,7 +96,7 @@ jobs: HAPPO_API_SECRET:toptal-ci/PICASSO_HAPPO_API_SECRET NPM_TOKEN:toptal-ci/NPM_TOKEN TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -109,7 +109,7 @@ jobs: echo "NPM_TOKEN=${{ steps.parse_secrets.outputs.NPM_TOKEN }}" >> $GITHUB_ENV echo "HAPPO_API_KEY=${{ steps.parse_secrets.outputs.HAPPO_API_KEY }}" >> $GITHUB_ENV echo "HAPPO_API_SECRET=${{ steps.parse_secrets.outputs.HAPPO_API_SECRET }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: @@ -120,7 +120,7 @@ jobs: - name: Get cached packages uses: actions/cache@v3 with: - path: 'packages/**/dist-package' + path: "packages/**/dist-package" key: ${{ runner.os }}-pkgs-${{ github.run_id }} }} - name: Run integration tests @@ -155,7 +155,7 @@ jobs: HAPPO_API_SECRET:toptal-ci/PICASSO_HAPPO_API_SECRET NPM_TOKEN:toptal-ci/NPM_TOKEN TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -168,7 +168,7 @@ jobs: echo "NPM_TOKEN=${{ steps.parse_secrets.outputs.NPM_TOKEN }}" >> $GITHUB_ENV echo "HAPPO_API_KEY=${{ steps.parse_secrets.outputs.HAPPO_API_KEY }}" >> $GITHUB_ENV echo "HAPPO_API_SECRET=${{ steps.parse_secrets.outputs.HAPPO_API_SECRET }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: diff --git a/.github/workflows/handle-contribution.yml b/.github/workflows/handle-contribution.yml index 0a36907dd84..ce2d49f8416 100644 --- a/.github/workflows/handle-contribution.yml +++ b/.github/workflows/handle-contribution.yml @@ -27,7 +27,7 @@ jobs: secrets_name: |- PICASSO_JIRA_AUTOMATION_HOOK_FOR_NEW_CONTRIBUTION:toptal-ci/PICASSO_JIRA_AUTOMATION_HOOK_FOR_NEW_CONTRIBUTION TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03baedacf17..b0951ca1063 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: TOPTAL_TRIGGERBOT_BUILD_TOKEN:toptal-ci/TOPTAL_TRIGGERBOT_BUILD_TOKEN TOPTAL_TRIGGERBOT_DEPLOYMENT_TOKEN:toptal-ci/TOPTAL_TRIGGERBOT_DEPLOYMENT_TOKEN TOPTAL_TRIGGERBOT_USERNAME:toptal-ci/TOPTAL_TRIGGERBOT_USERNAME - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -57,7 +57,7 @@ jobs: echo "TOPTAL_JENKINS_BUILD_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_TRIGGERBOT_BUILD_TOKEN }}" >> $GITHUB_ENV echo "HTTP_PROXY=${{ steps.parse_secrets.outputs.HTTP_PROXY }}" >> $GITHUB_ENV echo "DEVBOT_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_DEVBOT_TOKEN }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: @@ -154,7 +154,7 @@ jobs: "VERSION": "${{ github.sha }}", "IMAGE_NAME": "${{ env.REPOSITORY_NAME }}" } - job_timeout: '3600' + job_timeout: "3600" - name: Trigger deployment job id: trigger-deploy @@ -171,7 +171,7 @@ jobs: { "COMMIT_ID": "${{ github.sha }}" } - job_timeout: '3600' + job_timeout: "3600" - name: Send a Slack notification on failure if: ${{ failure() }} @@ -181,23 +181,23 @@ jobs: FAILURE_URL: ${{ steps.trigger-deploy.outputs.jenkins_job_url || steps.trigger-build.outputs.jenkins_job_url }} FALLBACK_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}?check_suite_focus=true with: - channel-id: '-frontend-exp-team-notifications' - slack-message: ':x: Current master version of Picasso is <${{ env.FAILURE_URL || env.FALLBACK_URL }}|broken>.' + channel-id: "-frontend-exp-team-notifications" + slack-message: ":x: Current master version of Picasso is <${{ env.FAILURE_URL || env.FALLBACK_URL }}|broken>." - name: Send a Slack notification on success release if: ${{ success() && steps.changesets.outputs.published == 'true' }} uses: slackapi/slack-github-action@v1.24.0 with: - channel-id: '-frontend-exp-team-notifications' - slack-message: 'Current master version of Picasso successfully released :green_heart:' + channel-id: "-frontend-exp-team-notifications" + slack-message: "Current master version of Picasso successfully released :green_heart:" env: SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }} - name: Send a Slack notification on success PR merge if: ${{ success() && steps.changesets.outputs.published != 'true'}} uses: slackapi/slack-github-action@v1.24.0 with: - channel-id: '-frontend-exp-team-notifications' - slack-message: 'A new PR was merged to Picasso :parrotspin:' + channel-id: "-frontend-exp-team-notifications" + slack-message: "A new PR was merged to Picasso :parrotspin:" env: SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }} diff --git a/.github/workflows/visual-testing.yml b/.github/workflows/visual-testing.yml index 1d21255d01a..3a72193ac79 100644 --- a/.github/workflows/visual-testing.yml +++ b/.github/workflows/visual-testing.yml @@ -43,7 +43,7 @@ jobs: HAPPO_API_KEY:toptal-ci/PICASSO_HAPPO_API_KEY HAPPO_API_SECRET:toptal-ci/PICASSO_HAPPO_API_SECRET TOPTAL_DEVBOT_TOKEN:toptal-ci/TOPTAL_DEVBOT_TOKEN - + - name: Parse secrets id: parse_secrets uses: toptal/davinci-github-actions/expose-json-outputs@master @@ -55,7 +55,7 @@ jobs: echo "HAPPO_API_KEY=${{ steps.parse_secrets.outputs.HAPPO_API_KEY }}" >> $GITHUB_ENV echo "HAPPO_API_SECRET=${{ steps.parse_secrets.outputs.HAPPO_API_SECRET }}" >> $GITHUB_ENV echo "TOPTAL_DEVBOT_TOKEN=${{ steps.parse_secrets.outputs.TOPTAL_DEVBOT_TOKEN }}" >> $GITHUB_ENV - + - name: Set up Node.js uses: actions/setup-node@v4 with: