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

Develop #819

Open
wants to merge 126 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
06d6225
convert CI to github action
jtolj Apr 9, 2024
1ed3644
Set PHP 8.1 as testing base
jtolj Apr 17, 2024
9e213ce
Onboarding menu item
zahardev Apr 29, 2024
bac05ba
Escape tags in the player
zahardev Apr 30, 2024
f9bea98
Cache Castos podcasts response
zahardev Apr 30, 2024
5855d53
Improved scheduled episodes sync, max 3 attempts
zahardev Apr 30, 2024
353733e
Version 3.3.0-alpha
zahardev Apr 30, 2024
4c40912
PHP warning fixes
zahardev May 2, 2024
bf643cd
Hide player if no file provided #714
zahardev May 2, 2024
5a64409
version 3.3.0-alpha.2
zahardev May 2, 2024
02f4427
Fixed Unit tests (player)
zahardev May 2, 2024
a67eae9
Automatically set feed title on step-1 of onboarding
zahardev May 6, 2024
6c5b802
Version 3.3.0-alpha.3
zahardev May 6, 2024
e3feb76
Acceptance tests fix
zahardev May 6, 2024
6a5a3a0
Tests fix 2
zahardev May 6, 2024
421b97a
Onboarding categories bug fixd (&-related issue)
zahardev May 7, 2024
485e7db
Version 3.3.0-alpha.4
zahardev May 7, 2024
4e752dd
Tests fix
zahardev May 8, 2024
dac70b3
Version 3.3.0
zahardev May 8, 2024
1386cd2
Fixed the plugin activation issue in WordPress 6.5.3
zahardev May 8, 2024
7f40485
Version 3.3.1
zahardev May 8, 2024
4b13da5
Polylang support #707
zahardev May 18, 2024
99d1fad
Removed outdated categories update notification #715
zahardev May 18, 2024
83f5af9
Use podcast post type by default when importing from RSS #716
zahardev May 18, 2024
f38ffcc
Delete Castos credentials on plugin deactivate #695
zahardev May 20, 2024
9c0edba
Support latest episodes in the [podcast_episode] shortcode #718
zahardev May 21, 2024
d5467ff
Removed outdated notifications
zahardev May 21, 2024
ecdc1bf
Improved player rendering #719
zahardev May 21, 2024
5d5259e
Carry over podcast description to feed details #691
zahardev May 21, 2024
dc8643f
Version 3.4.0-alpha
zahardev May 21, 2024
ad14cd6
Polylang support: ignore podmotor fields
zahardev May 28, 2024
e80eb73
Version 3.4.0-alpha.2
zahardev May 28, 2024
1609c57
Version 3.4.0
zahardev May 28, 2024
c67b162
Improved sync for Paid Memberships Pro #734
zahardev Jul 30, 2024
1b19b25
Castos authorization headers
zahardev Jul 30, 2024
75e5902
Version 3.4.1-beta
zahardev Jul 31, 2024
e14aaf6
Version 3.4.1
zahardev Jul 31, 2024
a790f83
Additional classes for the player block #723
zahardev Jun 20, 2024
022c794
Additional classes for playlist block, fixed playlist block color mod…
zahardev Jun 20, 2024
efb1678
Catch possible errors when downloading the file #727
zahardev Jun 28, 2024
11e3326
New connect and disconnect Castos logic #696
zahardev Jul 1, 2024
847a903
New castos connect for onboarding wizard #696
zahardev Jul 4, 2024
acc6bd6
Dynamically update sync status and show errors, backend #696
zahardev Jul 6, 2024
e7210b8
Display sync status and sync messages on post update #696
zahardev Jul 6, 2024
4bf226b
Display Sync status only for SSP post types #696
zahardev Jul 7, 2024
68079e7
Removed Subscribers challenge from sidebar #720
zahardev Jul 8, 2024
8d920d5
Added a filter for the tags allowed in the feed description #722
zahardev Jul 8, 2024
e6558c7
Version 3.5.0-alpha
zahardev Jul 8, 2024
1c668db
Version 3.5.0-alpha.2
zahardev Aug 6, 2024
6a71d1f
Acceptance tests fix
zahardev Aug 6, 2024
bb7ee72
Hosting page copy updates
KTorrii Aug 8, 2024
937df76
New connect and disconnect Castos logic #696
zahardev Jul 1, 2024
b131871
Show Castos Account on the Hosting tab
zahardev Aug 14, 2024
a49b665
Tests fix
zahardev Aug 14, 2024
fec886b
Version 3.5.0-alpha.3
zahardev Aug 14, 2024
527f9b2
Fixed Castos email unhandled exception
zahardev Aug 15, 2024
07643ae
Version 3.5.0-alpha.4
zahardev Aug 15, 2024
2e32a5a
Automatically disconnect if disconnected on Castos, constant notices
zahardev Sep 3, 2024
1d5a55f
Version 3.5.0-alpha.5
zahardev Sep 3, 2024
566e762
Onboarding connect: support long Castos messages #737
zahardev Sep 4, 2024
ebaf6b1
Version 3.5.0-alpha.6
zahardev Sep 4, 2024
b9d2d46
Fixed tests
zahardev Sep 4, 2024
bde61e3
Bug fixed: Sync status showing on disconnected accounts
zahardev Sep 6, 2024
73dc7b4
Version 3.5.0-alpha.7
zahardev Sep 6, 2024
c103585
Bug fixed: show disconnection notice second time after reconnection
zahardev Sep 6, 2024
72acb04
Version 3.5.0-alpha.8
zahardev Sep 6, 2024
83773e7
Do not show redundant "not synced yet" status
zahardev Sep 10, 2024
b767037
Version 3.5.0
zahardev Sep 11, 2024
74ee0e0
Updated artifact version
zahardev Sep 11, 2024
518f47d
Updated plugin video
zahardev Sep 26, 2024
469f1d1
Updated plugin video v2
zahardev Sep 26, 2024
ba00130
Meta sidebar - Episode Media section
zahardev Oct 8, 2024
e665a77
Meta sidebar - Episode Image section
zahardev Oct 9, 2024
9f690cd
Meta sidebar - Dynamo and Promo
zahardev Oct 9, 2024
e862b88
Meta sidebar - duration and filesize fields
zahardev Oct 13, 2024
e42ac1c
Meta sidebar - checkbox fields
zahardev Oct 14, 2024
ca6cc79
Meta sidebar - show sidebar only for podcast post types
zahardev Oct 15, 2024
9ab4ea8
Meta sidebar - Castos file upload
zahardev Oct 16, 2024
dde9078
Style improvements
zahardev Oct 16, 2024
8a407d9
Meta sidebar - Sidebar Panel
zahardev Oct 16, 2024
27cfc21
Meta sidebar - Sync status
zahardev Oct 16, 2024
2c04d20
File upload fixes
zahardev Oct 16, 2024
afb02a8
Open sidebar fix
zahardev Oct 16, 2024
a68bfeb
Version 3.6.0-alpha
zahardev Oct 16, 2024
4961106
Meta sidebar - added iTunes fields
zahardev Oct 24, 2024
331fd66
Meta sidebar - show iTunes only when they are enabled
zahardev Oct 24, 2024
5665cec
Meta sidebar - image field bug fixed
zahardev Oct 24, 2024
692032f
Get rid of deprecated click() && change() jQuery functions
zahardev Oct 24, 2024
f33f8c8
Meta sidebar - fixed deprecated component warnings
zahardev Oct 24, 2024
f76de57
Version 3.6.0-alpha.2
zahardev Oct 24, 2024
49d7f6a
Security improvements #741
zahardev Oct 29, 2024
a02540b
Version 3.6.0-alpha.3
zahardev Oct 29, 2024
78ace2f
Fixed feed image field
zahardev Oct 30, 2024
3e83c99
LifterLMS compatibility (744)
zahardev Oct 30, 2024
3284696
Player button style fix (745)
zahardev Oct 30, 2024
5d87da8
Version 3.6.0-alpha.4
zahardev Oct 30, 2024
9465025
Version 3.6.0
zahardev Nov 4, 2024
4c9b95a
Fixed episode meta field styles
zahardev Nov 5, 2024
60bfc04
Version 3.6.1
zahardev Nov 5, 2024
119d3ee
New file passthrough URL rules (746)
zahardev Nov 6, 2024
8c118dd
Added a hook for SSTranscripts sidebar meta field
zahardev Nov 7, 2024
ffc7ff1
Version 3.7.0-alpha
zahardev Nov 7, 2024
8cdf3d1
Acceptance tests fixed
zahardev Nov 7, 2024
ce701ba
Passthrough URL: fixed compact player (746)
zahardev Nov 15, 2024
1b817ef
Passthrough URL: support SSStats (746)
zahardev Nov 15, 2024
82f7479
Version 3.7.0-alpha.2
zahardev Nov 15, 2024
050b120
Fix fatal error in meta sidebar for certain custom post types (750)
zahardev Nov 19, 2024
634bb67
Set Podcast to Private to No if integration detected (749)
zahardev Nov 19, 2024
400175a
Fix color settings translation notice (751)
zahardev Nov 19, 2024
b22bb39
Version 3.7.0-alpha.3
zahardev Nov 19, 2024
d219ccc
Improve handling private feed settings with integrations (749)
zahardev Nov 21, 2024
bf279c0
Version 3.7.0-alpha.4
zahardev Nov 21, 2024
4ab05df
Prepare SSTranscripts sidebar field sync
zahardev Nov 25, 2024
c2a084d
Version 3.7.0
zahardev Nov 25, 2024
70fcb4d
Improved SSP filters
zahardev Dec 4, 2024
62c70e9
Do not try syncing memberships if Castos is not connected (753)
zahardev Dec 4, 2024
9c6ad2a
Lazy load settings (753)
zahardev Dec 4, 2024
1ca0ef4
Cache Castos email with transient
zahardev Dec 4, 2024
81e1aa1
Version 3.7.1-alpha
zahardev Dec 5, 2024
ea8043f
Fix Hosting tab title (753)
zahardev Dec 12, 2024
7b97bea
Version 3.7.1-alpha.2
zahardev Dec 12, 2024
acf6e91
Version 3.7.1
zahardev Dec 12, 2024
656722c
Add tag filter to playlist player shortcode
damian-c Dec 27, 2024
59851d8
Add tag selection to the playlist player in block editor
damian-c Dec 27, 2024
6f1d620
Sync Divi episodes with Castos (755)
zahardev Dec 27, 2024
c49b01f
Version 3.8.0-alpha
zahardev Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: CI

on:
pull_request:
branches:
- develop
- master

permissions:
contents: read

jobs:
run_tests:
name: Run Unit & Acceptance Tests
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress_test
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
coverage: none
tools: wp-cli

- name: Install Composer dependencies
run: composer install

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '17'

- name: Prepare testing environment
run: |
# Move the plugin files to the separate folder
mkdir ssp && mv `ls -A | grep -v ssp` ssp

# Download WordPress
wp core download --allow-root

# Set up .env
echo "TEST_WP_ROOT=$(pwd)" > .env.testing
echo "TEST_DB_HOST=127.0.0.1" >> .env.testing
echo "TEST_DB_NAME=wordpress_test" >> .env.testing
echo "TEST_DB_USER=wordpress" >> .env.testing
echo "TEST_DB_PASSWORD=wordpress" >> .env.testing
echo "TEST_DOMAIN=localhost" >> .env.testing
mv .env.testing ssp/

# Move the plugin to the plugins folder
mv ssp ./wp-content/plugins/seriously-simple-podcasting
cd wp-content/plugins/seriously-simple-podcasting
npm install -g grunt-cli
npm install
npm rebuild node-sass
grunt uglify && grunt cssmin && npm run build

- name: Run Unit tests
run: cd wp-content/plugins/seriously-simple-podcasting && vendor/bin/codecept run wpunit

- name: Run Acceptance tests
run: |
wp config create --dbname=wordpress_test --dbuser=wordpress --dbpass=wordpress --dbhost=127.0.0.1 --dbprefix=wsy_ --allow-root
wp config set WP_SITEURL http://localhost:8000 --type=constant --allow-root
wp config set WP_HOME http://localhost:8000 --type=constant --allow-root
nohup php -S localhost:8000 &
cd wp-content/plugins/seriously-simple-podcasting
echo "SITE_URL=http://localhost:8000" >> .env.testing
echo "SITE_USER=autotest" >> .env.testing
echo "SITE_USER_PASS=password" >> .env.testing
echo "PODCAST_GUID=dd94465b-580a-501c-a892-caf224d23d7a" >> .env.testing
sudo apt-get update -qq
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -qq mysql-client default-libmysqlclient-dev
gzip -d tests/seed.sql.gz && wp db import tests/seed.sql --allow-root
wp core update-db --allow-root
wp theme activate twentytwentyfour --allow-root
wp plugin install classic-editor --allow-root
vendor/bin/codecept run acceptance --steps

- name: Upload codeception output on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: acceptance-tests
path: wp-content/plugins/seriously-simple-podcasting/tests/_output

- name: Upload PHP server logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: acceptance-tests
path: nohup.out
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ unit_tests:

# Prepare testing environment file
- touch .env.testing
- echo "TEST_WP_ROOT=$(pwd)"
- echo "TEST_WP_ROOT=$(pwd)" >> .env.testing
- echo "TEST_DB_HOST=db" >> .env.testing
- echo "TEST_DB_NAME=$MYSQL_DATABASE" >> .env.testing
Expand Down Expand Up @@ -151,6 +150,7 @@ acceptance_tests:
- echo "SITE_URL=$SSH_USER" >> .env.testing
- echo "SITE_USER=$SITE_USER" >> .env.testing
- echo "SITE_USER_PASS=$SITE_USER_PASS" >> .env.testing
- echo "PODCAST_GUID=115e423a-72d2-531e-9d3c-ece7dd4b74fe" >> .env.testing

# Run Acceptance tests
- vendor/bin/codecept run acceptance --steps
Loading