diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..59e66cf --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,16 @@ +name: Check Conventional PR + +on: + pull_request: + branches: [ 1.x, 2.x, 3.x, 4.x ] + +jobs: + build: + name: Ensure Conventional Commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2-beta + - uses: beemojs/conventional-pr-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/composer.json b/composer.json index d1a7519..436b3ee 100755 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ } ], "require": { - "craftcms/cms": "^4.0.0-alpha", + "craftcms/cms": "^4.0.0", "paragonie/random-lib": "^2.0" }, "replace": { diff --git a/test-config/project/project.yaml b/test-config/project/project.yaml index 5457745..102db90 100644 --- a/test-config/project/project.yaml +++ b/test-config/project/project.yaml @@ -7,12 +7,12 @@ plugins: magic-login: edition: standard enabled: true - schemaVersion: 1.0.0 + schemaVersion: 2.0.0 system: edition: pro live: true name: 'Craft test site' - schemaVersion: 3.7.9 + schemaVersion: 4.5.3.0 timeZone: Europe/London users: allowPublicRegistration: true diff --git a/tests/_bootstrap.php b/tests/_bootstrap.php index d8dd650..fe17a52 100644 --- a/tests/_bootstrap.php +++ b/tests/_bootstrap.php @@ -6,6 +6,7 @@ // Use the current installation of Craft define('CRAFT_TESTS_PATH', __DIR__); +define('CRAFT_ROOT_PATH', dirname(__DIR__) . '/_craft'); define('CRAFT_STORAGE_PATH', __DIR__ . '/_craft/storage'); define('CRAFT_TEMPLATES_PATH', __DIR__ . '/_craft/templates'); define('CRAFT_CONFIG_PATH', __DIR__ . '/_craft/config');