Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff #1

Draft
wants to merge 75 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
a443002
comment unused workflows
mfrankiewicz Oct 29, 2023
78b67d9
adds woocommerce
mfrankiewicz Oct 29, 2023
8eacac0
unblock workflow
mfrankiewicz Oct 29, 2023
9ee9244
wget > curl
mfrankiewicz Oct 29, 2023
0b9c1a7
Recompile WordPress
Oct 29, 2023
322777d
fixes woo install
mfrankiewicz Oct 29, 2023
326ae1e
Merge branch 'develop' of github.com:tagconcierge/wordpress-playgroun…
mfrankiewicz Oct 29, 2023
fc55f6c
fixes woo install
mfrankiewicz Oct 29, 2023
5ae3c69
fixes woo install
mfrankiewicz Oct 29, 2023
13959a4
fixes woo install
mfrankiewicz Oct 29, 2023
e97c8be
fixes woo install
mfrankiewicz Oct 29, 2023
53129be
fixes woo install
mfrankiewicz Oct 29, 2023
4d4416f
fixes woo install
mfrankiewicz Oct 29, 2023
d0e157d
fixes woo install
mfrankiewicz Oct 29, 2023
97e0354
fixes woo install
mfrankiewicz Oct 29, 2023
eaaa58e
fixes woo install
mfrankiewicz Oct 29, 2023
6bcd160
fixes woo install
mfrankiewicz Oct 29, 2023
3da08e6
Recompile WordPress
Oct 29, 2023
01d79da
fixes woo install
mfrankiewicz Oct 29, 2023
f494364
Recompile WordPress
Oct 29, 2023
8ee90ba
fixes woo install
mfrankiewicz Oct 31, 2023
6db2194
Merge branch 'develop' of github.com:tagconcierge/wordpress-playgroun…
mfrankiewicz Oct 31, 2023
f85b939
fixes woo install
mfrankiewicz Oct 31, 2023
bd58766
fixes woo install
mfrankiewicz Oct 31, 2023
4ee8c6d
disable workflow
mfrankiewicz Oct 31, 2023
6f4349e
Recompile WordPress
Oct 31, 2023
056a19d
fixes woo install
mfrankiewicz Oct 31, 2023
1b949b6
Recompile WordPress
Oct 31, 2023
4276641
fixes woo install
mfrankiewicz Oct 31, 2023
abed361
Recompile WordPress
Oct 31, 2023
5acd342
fixes woo install
mfrankiewicz Oct 31, 2023
610a702
Recompile WordPress
Oct 31, 2023
ad6b770
fixes woo install
mfrankiewicz Oct 31, 2023
222792d
Recompile WordPress
Oct 31, 2023
e384230
fixes woo install
mfrankiewicz Oct 31, 2023
04ce938
fixes woo install
mfrankiewicz Oct 31, 2023
99cf9d1
fixes woo install
mfrankiewicz Oct 31, 2023
a27be63
fixes woo install
mfrankiewicz Oct 31, 2023
5252c45
Recompile WordPress
Oct 31, 2023
c31857a
Recompile WordPress
Oct 31, 2023
5c8e370
fixes woo install
mfrankiewicz Oct 31, 2023
7408801
Merge branch 'develop' of github.com:tagconcierge/wordpress-playgroun…
mfrankiewicz Oct 31, 2023
ca94a27
Recompile WordPress
Oct 31, 2023
0ce85f9
fixes woo install
mfrankiewicz Oct 31, 2023
c7aa7b4
fixes woo install
mfrankiewicz Oct 31, 2023
25c9067
Recompile WordPress
Oct 31, 2023
1949ef5
fixes woo install
mfrankiewicz Oct 31, 2023
d9e8375
Recompile WordPress
Oct 31, 2023
83af483
fixes woo install
mfrankiewicz Oct 31, 2023
6e7ef02
Recompile WordPress
Oct 31, 2023
e6eee48
fixes woo install
mfrankiewicz Oct 31, 2023
4aad6fb
Recompile WordPress
Oct 31, 2023
33a39b8
fixes woo install
mfrankiewicz Oct 31, 2023
611ebd1
Recompile WordPress
Oct 31, 2023
cce2d8b
fixes woo install
mfrankiewicz Oct 31, 2023
97cf36e
Recompile WordPress
Oct 31, 2023
79ebd24
fixes woo install
mfrankiewicz Nov 1, 2023
e49512b
Merge branch 'develop' of github.com:tagconcierge/wordpress-playgroun…
mfrankiewicz Nov 1, 2023
9c30e5e
fixes woo install
mfrankiewicz Nov 1, 2023
e065856
Recompile WordPress
Nov 1, 2023
c791f41
fixes woo install
mfrankiewicz Nov 1, 2023
109fcef
fixes woo install
mfrankiewicz Nov 1, 2023
8e64b39
Recompile WordPress
Nov 1, 2023
7d027a7
fixes woo install
mfrankiewicz Nov 1, 2023
4670b20
Recompile WordPress
Nov 1, 2023
95a918a
fixes woo install
mfrankiewicz Nov 3, 2023
8a171f0
Recompile WordPress
Nov 3, 2023
fbe9c60
fixes woo install
mfrankiewicz Nov 3, 2023
f582f95
Recompile WordPress
Nov 3, 2023
0e1043d
fixes woo install
mfrankiewicz Nov 3, 2023
24aa0eb
fixes woo install
mfrankiewicz Nov 3, 2023
f52f846
Recompile WordPress
Nov 3, 2023
2d2740e
Recompile WordPress
Nov 3, 2023
ec40ab8
fixes woo install
mfrankiewicz Nov 3, 2023
79a31cc
Recompile WordPress
Nov 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
20 changes: 10 additions & 10 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ name: Deploy to playground.wordpress.net

on:
workflow_dispatch:
workflow_run:
workflows: [Refresh WordPress assets]
types:
- completed
# workflow_run:
# workflows: [Refresh WordPress assets]
# types:
# - completed

jobs:
build_and_deploy:
# Only run this workflow from the trunk branch and when it's triggered by another workflow OR dmsnell OR adamziel
if: >
github.ref == 'refs/heads/trunk' && (
github.event_name == 'workflow_run' ||
github.actor == 'adamziel' ||
github.actor == 'dmsnell'
)
# if: >
# github.ref == 'refs/heads/trunk' && (
# github.event_name == 'workflow_run' ||
# github.actor == 'adamziel' ||
# github.actor == 'dmsnell'
# )

# Specify runner + deployment step
runs-on: ubuntu-latest
Expand Down
132 changes: 66 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: CI
on:
push:
branches:
- trunk
pull_request:

jobs:
# This step:
# * Warms up the node_modules cache
# * Performs linting and typechecking
#
# The linting tasks take ~5s to complete and it doesn't
# make sense to separate them into separate steps that would
# take ~25s just to run git clone and restore node_modules.
lint-and-typecheck:
name: 'Lint and typecheck'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare-playground
- run: npx nx affected --target=lint
- run: npx nx affected --target=typecheck
test:
runs-on: ubuntu-latest
needs: [lint-and-typecheck]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare-playground
- run: npx nx affected --target=test --configuration=ci
build:
runs-on: ubuntu-latest
needs: [lint-and-typecheck]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare-playground
- run: npx nx affected --target=build --parallel=3

# Deploy documentation job
deploy_docs:
if: github.ref == 'refs/heads/trunk' && github.event_name == 'push'
# Add a dependency to the build job
needs: [test, build]
name: 'Deploy doc site'

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare-playground
- run: npm run build:docs
- uses: actions/upload-pages-artifact@v1
with: { path: dist/docs/build }
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
#name: CI
#on:
# push:
# branches:
# - trunk
# pull_request:
#
#jobs:
# # This step:
# # * Warms up the node_modules cache
# # * Performs linting and typechecking
# #
# # The linting tasks take ~5s to complete and it doesn't
# # make sense to separate them into separate steps that would
# # take ~25s just to run git clone and restore node_modules.
# lint-and-typecheck:
# name: 'Lint and typecheck'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/prepare-playground
# - run: npx nx affected --target=lint
# - run: npx nx affected --target=typecheck
# test:
# runs-on: ubuntu-latest
# needs: [lint-and-typecheck]
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/prepare-playground
# - run: npx nx affected --target=test --configuration=ci
# build:
# runs-on: ubuntu-latest
# needs: [lint-and-typecheck]
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/prepare-playground
# - run: npx nx affected --target=build --parallel=3
#
# # Deploy documentation job
# deploy_docs:
# if: github.ref == 'refs/heads/trunk' && github.event_name == 'push'
# # Add a dependency to the build job
# needs: [test, build]
# name: 'Deploy doc site'
#
# # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
# permissions:
# pages: write # to deploy to Pages
# id-token: write # to verify the deployment originates from an appropriate source
#
# # Deploy to the github-pages environment
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
#
# # Specify runner + deployment step
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/prepare-playground
# - run: npm run build:docs
# - uses: actions/upload-pages-artifact@v1
# with: { path: dist/docs/build }
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
88 changes: 44 additions & 44 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: Continue deploying to playground.wordpress.net (don't use manually)
# Sorry, the previous job just built it and uploaded it to GitHub

on:
workflow_run:
workflows: [Deploy to playground.wordpress.net]
types:
- completed

jobs:
build_and_deploy:
# Only run this workflow from the trunk branch and when it's triggered by another workflow OR dmsnell OR adamziel
if: >
github.ref == 'refs/heads/trunk' && (
github.event.workflow_run.conclusion == 'success' ||
github.actor == 'adamziel' ||
github.actor == 'dmsnell'
)

# Specify runner + deployment step
runs-on: ubuntu-latest
environment:
name: playground-wordpress-net
steps:
# Deploy the latest website artifact to playground.wordpress.net website by
# sending a CURL request to https://playground.wordpress.net/webhook.php with a header
# like X-Deployment-Token that has the same value as github secret DEPLOY_AUTH_TOKEN
- name: Deploy
shell: bash
# Sleep to give the GitHub API time to register the artifact,
# otherwise the artifact will not be available when the webhook is called
run: |
while true; do
API_HASH=$(curl 'https://api.github.com/repos/wordpress/wordpress-playground/actions/artifacts?name=playground-website&per_page=2' \
| jq -r '.artifacts[0].workflow_run.head_sha')
if [ "$API_HASH" = "$GITHUB_SHA" ]; then
break;
fi;
echo "$API_HASH was not $GITHUB_SHA, waiting 10 seconds...";
sleep 10;
done;
curl -X POST https://playground.wordpress.net/webhook.php \
-H "X-Deployment-Token: ${{ secrets.DEPLOYMENT_KEY }}" \
-H "Content-Type: application/json"
#name: Continue deploying to playground.wordpress.net (don't use manually)
## Sorry, the previous job just built it and uploaded it to GitHub
#
#on:
# workflow_run:
# workflows: [Deploy to playground.wordpress.net]
# types:
# - completed
#
#jobs:
# build_and_deploy:
# # Only run this workflow from the trunk branch and when it's triggered by another workflow OR dmsnell OR adamziel
# if: >
# github.ref == 'refs/heads/trunk' && (
# github.event.workflow_run.conclusion == 'success' ||
# github.actor == 'adamziel' ||
# github.actor == 'dmsnell'
# )
#
# # Specify runner + deployment step
# runs-on: ubuntu-latest
# environment:
# name: playground-wordpress-net
# steps:
# # Deploy the latest website artifact to playground.wordpress.net website by
# # sending a CURL request to https://playground.wordpress.net/webhook.php with a header
# # like X-Deployment-Token that has the same value as github secret DEPLOY_AUTH_TOKEN
# - name: Deploy
# shell: bash
# # Sleep to give the GitHub API time to register the artifact,
# # otherwise the artifact will not be available when the webhook is called
# run: |
# while true; do
# API_HASH=$(curl 'https://api.github.com/repos/wordpress/wordpress-playground/actions/artifacts?name=playground-website&per_page=2' \
# | jq -r '.artifacts[0].workflow_run.head_sha')
# if [ "$API_HASH" = "$GITHUB_SHA" ]; then
# break;
# fi;
# echo "$API_HASH was not $GITHUB_SHA, waiting 10 seconds...";
# sleep 10;
# done;
# curl -X POST https://playground.wordpress.net/webhook.php \
# -H "X-Deployment-Token: ${{ secrets.DEPLOYMENT_KEY }}" \
# -H "Content-Type: application/json"
106 changes: 53 additions & 53 deletions .github/workflows/publish-npm-packages.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: Release NPM packages

on:
workflow_dispatch:
# Require a version bump (patch, minor, major) and an optional dist tag
inputs:
version_bump:
description: 'Version bump (patch, minor, or major)'
required: true
default: 'patch'
dist_tag:
description: 'Dist tag (latest, next, etc.)'
required: false
default: 'latest'

jobs:
release:
# Only run this workflow from the trunk branch and when it's triggered by dmsnell OR adamziel
if: >
github.ref == 'refs/heads/trunk' && (
github.actor == 'adamziel' ||
github.actor == 'dmsnell'
)

# Specify runner + deployment step
runs-on: ubuntu-latest
environment:
name: npm
env:
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
clean: true
fetch-depth: 0
persist-credentials: false
- name: Config git user
run: |
git config --global user.name "deployment_bot"
git config --global user.email "deployment_bot@users.noreply.github.com"
git remote set-url origin https://${{ secrets.GH_ACTOR }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
- name: Authenticate with Registry
run: |
echo "@php-wasm:registry=https://registry.npmjs.org/" > ~/.npmrc
echo "@wp-playground:registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- uses: ./.github/actions/prepare-playground
# Version bump, release, tag a new version on GitHub
- name: Release new version of NPM packages
shell: bash
run: npx lerna@6.6.2 publish ${{ inputs.version_bump }} --yes --no-private --loglevel=verbose --dist-tag=${{ inputs.dist_tag }}
#name: Release NPM packages
#
#on:
# workflow_dispatch:
# # Require a version bump (patch, minor, major) and an optional dist tag
# inputs:
# version_bump:
# description: 'Version bump (patch, minor, or major)'
# required: true
# default: 'patch'
# dist_tag:
# description: 'Dist tag (latest, next, etc.)'
# required: false
# default: 'latest'
#
#jobs:
# release:
# # Only run this workflow from the trunk branch and when it's triggered by dmsnell OR adamziel
# if: >
# github.ref == 'refs/heads/trunk' && (
# github.actor == 'adamziel' ||
# github.actor == 'dmsnell'
# )
#
# # Specify runner + deployment step
# runs-on: ubuntu-latest
# environment:
# name: npm
# env:
# NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.ref }}
# clean: true
# fetch-depth: 0
# persist-credentials: false
# - name: Config git user
# run: |
# git config --global user.name "deployment_bot"
# git config --global user.email "deployment_bot@users.noreply.github.com"
# git remote set-url origin https://${{ secrets.GH_ACTOR }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
# - name: Authenticate with Registry
# run: |
# echo "@php-wasm:registry=https://registry.npmjs.org/" > ~/.npmrc
# echo "@wp-playground:registry=https://registry.npmjs.org/" >> ~/.npmrc
# echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
# echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# - uses: ./.github/actions/prepare-playground
# # Version bump, release, tag a new version on GitHub
# - name: Release new version of NPM packages
# shell: bash
# run: npx lerna@6.6.2 publish ${{ inputs.version_bump }} --yes --no-private --loglevel=verbose --dist-tag=${{ inputs.dist_tag }}
Loading
Loading