diff --git a/.env.dist.testing b/.env.dist.testing index c3f4d0d..e1cc30c 100644 --- a/.env.dist.testing +++ b/.env.dist.testing @@ -16,6 +16,7 @@ TEST_TABLE_PREFIX=wp_ TEST_SITE_WP_URL=http://127.0.0.1 TEST_SITE_WP_DOMAIN=127.0.0.1 TEST_SITE_ADMIN_EMAIL=wordpress@convertkit.local +CONVERTKIT_API_BROADCAST_ID="8697158" CONVERTKIT_API_FORM_ID="2765139" CONVERTKIT_API_LEGACY_FORM_ID="470099" CONVERTKIT_API_LANDING_PAGE_ID="2765196" diff --git a/.env.example b/.env.example index 6c14378..ed515ed 100644 --- a/.env.example +++ b/.env.example @@ -16,12 +16,15 @@ TEST_TABLE_PREFIX=wp_ TEST_SITE_WP_URL=http://convertkit.local TEST_SITE_WP_DOMAIN=convertkit.local TEST_SITE_ADMIN_EMAIL=wordpress@convertkit.local +CONVERTKIT_API_KEY= +CONVERTKIT_API_SECRET= CONVERTKIT_OAUTH_ACCESS_TOKEN= CONVERTKIT_OAUTH_REFRESH_TOKEN= CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA= CONVERTKIT_OAUTH_REFRESH_TOKEN_NO_DATA= CONVERTKIT_OAUTH_CLIENT_ID= CONVERTKIT_OAUTH_REDIRECT_URI= +CONVERTKIT_API_BROADCAST_ID="8697158" CONVERTKIT_API_FORM_ID="2765139" CONVERTKIT_API_LEGACY_FORM_ID="470099" CONVERTKIT_API_LANDING_PAGE_ID="2765196" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c9844e..39442b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,6 +31,8 @@ jobs: DB_PASS: root DB_HOST: localhost INSTALL_PLUGINS: "woocommerce" # Don't include this repository's Plugin here. + CONVERTKIT_API_KEY: ${{ secrets.CONVERTKIT_API_KEY }} + CONVERTKIT_API_SECRET: ${{ secrets.CONVERTKIT_API_SECRET }} CONVERTKIT_OAUTH_ACCESS_TOKEN: ${{ secrets.CONVERTKIT_OAUTH_ACCESS_TOKEN }} CONVERTKIT_OAUTH_REFRESH_TOKEN: ${{ secrets.CONVERTKIT_OAUTH_REFRESH_TOKEN }} CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA: ${{ secrets.CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA }} @@ -111,6 +113,8 @@ jobs: path: ${{ env.PLUGIN_DIR }}/.env.dist.testing contents: | + CONVERTKIT_API_KEY=${{ env.CONVERTKIT_API_KEY }} + CONVERTKIT_API_SECRET=${{ env.CONVERTKIT_API_SECRET }} CONVERTKIT_OAUTH_ACCESS_TOKEN=${{ env.CONVERTKIT_OAUTH_ACCESS_TOKEN }} CONVERTKIT_OAUTH_REFRESH_TOKEN=${{ env.CONVERTKIT_OAUTH_REFRESH_TOKEN }} CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA=${{ env.CONVERTKIT_OAUTH_ACCESS_TOKEN_NO_DATA }} diff --git a/phpcs.xml b/phpcs.xml index 1b5a14b..1e875f4 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -11,6 +11,9 @@ *.min.js + + class-convertkit-api-traits.php +