Skip to content

Commit

Permalink
Merge pull request #7912 from ampproject/update/support-links
Browse files Browse the repository at this point in the history
Update Support Links
  • Loading branch information
westonruter authored Nov 12, 2024
2 parents 59b8934 + d378d45 commit e2354ba
Show file tree
Hide file tree
Showing 28 changed files with 10 additions and 4,104 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ module.exports = {
'amp-settings',
'amp-themes',
'amp-plugins',
'amp-support',
'amp-block-validation',
'amp-site-scan-notice',
],
Expand Down
194 changes: 0 additions & 194 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -573,197 +573,3 @@ jobs:

- name: Run tests
run: ./vendor/bin/behat

#-----------------------------------------------------------------------------------------------------------------------

# build-zip:
# name: 'Build: ${{ matrix.build }} build ZIP'
# needs: pre-run
# # Only run if the PR was not authored by Dependabot and it is not a draft or not from a fork.
# if: >
# needs.pre-run.outputs.changed-file-count > 0 &&
# github.event.pull_request.draft == false &&
# github.event.pull_request.head.repo.fork == false &&
# github.event.pull_request.user.login != 'dependabot[bot]'
# runs-on: ubuntu-latest
# permissions:
# actions: write
# outputs:
# branch-name: ${{ steps.retrieve-branch-name.outputs.branch_name }}
# git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
# strategy:
# matrix:
# build: ['dev', 'prod']
# steps:
# - name: Checkout
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
#
# - name: Setup NodeJS and NPM
# uses: ./.github/actions/setup-node-npm
#
# - name: Setup PHP and Composer
# uses: ./.github/actions/setup-php-composer
# with:
# php-version: '7.4'
#
# - name: Create destination directories
# run: mkdir -p builds/${{ matrix.build }}
#
# - name: Build plugin
# run: |
# npm run package:${{ matrix.build }}
# mv amp.zip builds/${{ matrix.build }}/amp.zip
# env:
# LAST_PR_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}
#
# - name: Generate checksum file
# working-directory: builds/${{ matrix.build }}
# run: |
# mkdir -p $RUNNER_TEMP/plugin-checksums
# find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# \*\./# *#' > $RUNNER_TEMP/plugin-checksums/checksums.txt
# shasum -a 256 -U -c $RUNNER_TEMP/plugin-checksums/checksums.txt
# cat $RUNNER_TEMP/plugin-checksums/checksums.txt | while read sum file; do echo "$sum $file" > ${file#\*}.sha256; done
#
# - name: Retrieve branch name
# id: retrieve-branch-name
# run: echo "branch_name=$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_OUTPUT
#
# - name: Retrieve git SHA-8 string
# id: retrieve-git-sha-8
# run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
#
# - name: Upload build as artifact
# uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 #v4.4.3
# with:
# name: amp-${{ steps.retrieve-branch-name.outputs.branch_name }}-${{ steps.retrieve-git-sha-8.outputs.sha8 }}-${{ matrix.build }}
# path: builds/${{ matrix.build }}

#-----------------------------------------------------------------------------------------------------------------------

# upload-to-gcs:
# name: Upload plugin ZIPs to Google Cloud Storage
# runs-on: ubuntu-latest
# permissions:
# actions: write
# needs:
# - build-zip
# outputs:
# dev-checksum: ${{ steps.output-checksums.outputs.dev-checksum }}
# prod-checksum: ${{ steps.output-checksums.outputs.prod-checksum }}
# steps:
# - name: Download dev build
# uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e #v4.1.7
# with:
# name: amp-${{ needs.build-zip.outputs.branch-name }}-${{ needs.build-zip.outputs.git-sha-8 }}-dev
# path: builds/dev
#
# - name: Download prod build
# uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e #v4.1.7
# with:
# name: amp-${{ needs.build-zip.outputs.branch-name }}-${{ needs.build-zip.outputs.git-sha-8 }}-prod
# path: builds/prod
#
# - name: Setup Google Cloud SDK
# uses: google-github-actions/setup-gcloud@20c93dacc1d70ddbce76c63ab32c35595345bdd1 #v0
# with:
# project_id: ${{ secrets.GCS_PROJECT_ID }}
# service_account_key: ${{ secrets.GCS_APPLICATION_CREDENTIALS }}
#
# - name: Output checksums
# id: output-checksums
# run: |
# echo "dev-checksum=$(cat builds/dev/*.sha256)" >> $GITHUB_OUTPUT
# echo "prod-checksum=$(cat builds/prod/*.sha256)" >> $GITHUB_OUTPUT
#
# - name: Upload dev build to bucket
# run: gsutil cp -r builds/dev/amp.zip gs://ampwp_github_artifacts/${{ github.ref }}/dev/amp.zip
#
# - name: Upload dev build checksums to bucket
# if: ${{ github.ref == 'refs/heads/develop' }}
# run: gsutil cp -r builds/dev/*.sha256 gs://ampwp_github_artifacts/${{ github.ref }}/dev/
#
# - name: Upload prod build to bucket
# run: gsutil cp -r builds/prod/amp.zip gs://ampwp_github_artifacts/${{ github.ref }}/prod/amp.zip
#
# - name: Upload prod build checksums to bucket
# if: ${{ github.ref == 'refs/heads/develop' }}
# run: gsutil cp -r builds/prod/*.sha256 gs://ampwp_github_artifacts/${{ github.ref }}/prod/

#-----------------------------------------------------------------------------------------------------------------------

# comment-on-pr:
# name: Comment on PR with links to plugin ZIPs
# # Only run this job if it's a PR. One way to check for that is if `github.head_ref` is not empty.
# if: ${{ github.head_ref && github.head_ref != null }}
# runs-on: ubuntu-latest
# needs: upload-to-gcs
# permissions:
# pull-requests: write
# steps:
# - name: Check if a comment was already made
# id: find-comment
# uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
# with:
# script: |
# const { data: comments } = await github.rest.issues.listComments({
# owner: context.repo.owner,
# repo: context.repo.repo,
# issue_number: context.issue.number,
# });
#
# const comment = comments.find((comment) => comment.body.includes('Plugin builds for'));
#
# return comment ? comment.id : null;
#
# - name: Get comment body
# id: get-comment-body
# # Setting a multi-line output requires escaping line-feeds. See <https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings>.
# run: |
# body="Plugin builds for ${{ github.event.pull_request.head.sha }} are ready :bellhop_bell:!
# - Download [development build](https://storage.googleapis.com/ampwp_github_artifacts/${{ github.ref }}/dev/amp.zip?${{ github.sha }})
# - Download [production build](https://storage.googleapis.com/ampwp_github_artifacts/${{ github.ref }}/prod/amp.zip?${{ github.sha }})
#
# <details>
# <summary>Checksums</summary>
#
# <pre>
# <code># Development build checksums
# ${{ needs.upload-to-gcs.outputs.dev-checksum }}
#
# # Production build checksums
# ${{ needs.upload-to-gcs.outputs.prod-checksum }}</code>
# </pre>
#
# </details>
#
# > [!WARNING]
# > These builds are for testing purposes only and should not be used in production."
#
# delimiter="${body//$'\n'/'%0A'}"
# echo "body<<${delimiter}" >> $GITHUB_OUTPUT
# echo "$body" >> $GITHUB_OUTPUT
# echo "${delimiter}" >> $GITHUB_OUTPUT
#
# - name: Create comment on PR with links to plugin builds
# if: ${{ steps.find-comment.outputs.result == 'null' }}
# uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
# with:
# script: |
# github.rest.issues.createComment({
# owner: context.repo.owner,
# repo: context.repo.repo,
# issue_number: context.issue.number,
# body: `${{ steps.get-comment-body.outputs.body }}`,
# });
#
# - name: Update comment on PR with links to plugin builds
# if: ${{ steps.find-comment.outputs.result != 'null' }}
# uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
# with:
# script: |
# github.rest.issues.updateComment({
# owner: context.repo.owner,
# repo: context.repo.repo,
# comment_id: ${{ steps.find-comment.outputs.result }},
# body: `${{ steps.get-comment-body.outputs.body }}`,
# });
3 changes: 0 additions & 3 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
'admin.options_menu' => \AmpProject\AmpWP\Admin\OptionsMenu::class,
'admin.paired_browsing' => \AmpProject\AmpWP\Admin\PairedBrowsing::class,
'admin.plugin_row_meta' => \AmpProject\AmpWP\Admin\PluginRowMeta::class,
'admin.support_screen' => \AmpProject\AmpWP\Admin\SupportScreen::class,
'admin.support' => \AmpProject\AmpWP\Admin\SupportLink::class,
'admin.polyfills' => \AmpProject\AmpWP\Admin\Polyfills::class,
'admin.user_rest_endpoint_extension' => \AmpProject\AmpWP\Admin\UserRESTEndpointExtension::class,
Expand Down Expand Up @@ -59,8 +58,6 @@
'sandboxing' => \AmpProject\AmpWP\Sandboxing::class,
'server_timing' => \AmpProject\AmpWP\Instrumentation\ServerTiming::class,
'site_health_integration' => \AmpProject\AmpWP\Admin\SiteHealth::class,
'support' => \AmpProject\AmpWP\Support\SupportCliCommand::class,
'support_rest_controller' => \AmpProject\AmpWP\Support\SupportRESTController::class,
'url_validation_cron' => \AmpProject\AmpWP\Validation\URLValidationCron::class,
'url_validation_rest_controller' => \AmpProject\AmpWP\Validation\URLValidationRESTController::class,
'validated_url_stylesheet_gc' => \AmpProject\AmpWP\BackgroundTask\ValidatedUrlStylesheetDataGarbageCollection::class,
Expand Down
33 changes: 0 additions & 33 deletions assets/src/components/amp-support/details.js

This file was deleted.

Loading

0 comments on commit e2354ba

Please sign in to comment.