Skip to content

Commit

Permalink
Updating stable playground-ready branch with latest changes to main (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
asirota authored Nov 11, 2024
1 parent 6845ffa commit 74fc683
Show file tree
Hide file tree
Showing 39 changed files with 2,108 additions and 192 deletions.
Binary file added .DS_Store
Binary file not shown.
148 changes: 148 additions & 0 deletions .github/ISSUE_TEMPLATE/BugReport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
name: Bug Report
description: File a bug report.
title: "[Bug]: "
labels: ["bug", "needs triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! You can use the Site Health option in your website to collect a lot of the data requested below.
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you are seeing or experiencing.
value: "A bug was witnessed!"

validations:
required: true
- type: dropdown
id: version
attributes:
label: Version
description: What version of AspireUpdate are you running?
options:
- 0.5 (Default)
- 1.0
- Nightly
default: 0
validations:
required: true

- type: dropdown
id: os
attributes:
label: 'OS'
description: 'The operating system you are running on (Linux, Windows, Mac, etc).'
options:
- Windows
- MacOS
- iOS
- Android
- Linux
- Other


- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- Opera
- Other

- type: input
id: wordpress
attributes:
label: 'WordPress'
description: 'The version of WordPress that your site uses.'

- type: input
id: php
attributes:
label: 'PHP'
description: 'The version of PHP your site runs on.'

- type: input
id: server
attributes:
label: 'Server'
description: 'The server your site runs on (apache, nginx, etc).'

- type: input
id: database
attributes:
label: 'Database'
description: 'The database engine used by your site.'

- type: input
id: theme
attributes:
label: 'Theme'
description: 'The currently active theme.'

- type: input
id: must_use_plugins
attributes:
label: 'Must-Use Plugins'
description: 'A list of Must-Use Plugins.'

- type: input
id: plugins
attributes:
label: 'Plugins'
description: 'A list of active plugins.'



- type: textarea
id: sitehealth
attributes:
label: WordPress Site Health Output (optional)
description: Please copy and paste a SiteHealth report with details of your WordPress configuration. This will be automatically formatted into code, so no need for backticks.
render: shell


- type: textarea
id: logs
attributes:
label: Relevant debug log output
description: Please copy and paste any relevant debug log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: textarea
attributes:
label: Screenshots/Live demo link
description: Add some screenshots to help explain the problem.
validations:
required: false

- type: textarea
id: additional_notes
attributes:
label: 'Additional Notes'
description: 'Any additional details worth mentioning.'

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow the AspirePress [Code of Conduct](https://github.com/aspirepress/AspireUpdate?tab=coc-ov-file).

options:
- label: I agree to follow the Code of Conduct.
required: true

26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/FeatureRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Feature Request
description: Suggest an idea for this project.
labels: ['enhancement', 'needs triage']
body:
- type: checkboxes
attributes:
label: 'I have checked the following:'
options:
- label: I've searched existing issues and found nothing related to my issue.
required: true
- type: markdown
attributes:
value: |
Suggest an idea for this project.
- type: textarea
attributes:
label: Describe the feature you want to add
description: A clear and concise description of the feature you want to be added.
validations:
required: true
- type: textarea
attributes:
label: Mockups or Images of the feature
description: Add some images to support your feature.
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Discussions & Support
url: https://aspirepress.org/slack/
about: You can ask general questions or give feedback on the AspirePress community.
5 changes: 3 additions & 2 deletions .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ on:

jobs:
phpunit:
name: Run tests
name: Run tests (PHP ${{ matrix.php-version }}, ${{ matrix.multisite && 'Multisite' || 'Single Site' }})
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.4', '8.3']
multisite: [ true, false ]
services:
database:
image: mysql:latest
Expand All @@ -38,4 +39,4 @@ jobs:
run: bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true

- name: Run tests
run: phpunit
run: XDEBUG_MODE=off phpunit${{ matrix.multisite && ' -c tests/multisite.xml' || '' }}
46 changes: 46 additions & 0 deletions .github/workflows/playground-blueprint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update Playground Blueprint with Repository and Branch

on:
push:
branches:
- playground-ready
tags:
- "**"

jobs:
update-blueprint:
if: github.repository == 'aspirepress/AspireUpdate'
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set Branch or Tag Name
id: branch-name
run: |
if [ "${{ github.ref_type }}" == "branch" ]; then
echo "CURRENT_REF=${{ github.ref_name }}" >> $GITHUB_ENV
elif [ "${{ github.ref_type }}" == "tag" ]; then
echo "CURRENT_REF=${{ github.ref_name }}" >> $GITHUB_ENV
fi
- name: Update Blueprint JSON
run: |
jq --tab '.plugins[0] |= "https://github-proxy.com/proxy/?repo='$GITHUB_REPOSITORY'&branch='$CURRENT_REF'"' assets/playground/blueprint.json > assets/playground/blueprint.json.tmp
mv assets/playground/blueprint.json.tmp assets/playground/blueprint.json
- name: Commit and Push Changes
run: |
if git diff --cached --quiet; then
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add assets/playground/blueprint.json
git commit -m "Update blueprint.json for branch/tag ${{ env.name }}"
git push
fi
env:
name: ${{ env.name }}

22 changes: 4 additions & 18 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Get tag
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Build project
run: git archive -o /tmp/AspireUpdate-${{ steps.tag.outputs.tag }}.zip --prefix=AspireUpdate/ ${{ steps.tag.outputs.tag }}
run: git archive -o /tmp/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip --prefix=${{ github.event.repository.name }}/ ${{ steps.tag.outputs.tag }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.tag }}
release_name: ${{ steps.tag.outputs.tag }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/AspireUpdate-${{ steps.tag.outputs.tag }}.zip
asset_name: AspireUpdate-${{ steps.tag.outputs.tag }}.zip
asset_content_type: application/zip
files: /tmp/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip
Loading

0 comments on commit 74fc683

Please sign in to comment.