diff --git a/.github/workflows/REUSABLE_backend.yml b/.github/workflows/REUSABLE_backend.yml new file mode 100644 index 000000000..3d1925fea --- /dev/null +++ b/.github/workflows/REUSABLE_backend.yml @@ -0,0 +1,112 @@ +name: Flarum Backend Jobs + +on: + workflow_call: + inputs: + enable_backend_testing: + description: "Enable Backend Testing?" + type: boolean + default: true + required: false + + backend_directory: + description: The directory of the project where backend code is located. This should contain a `composer.json` file, and is generally the root directory of the repo. + type: string + required: false + default: '.' + + php_versions: + description: Versions of PHP to test with. Should be array of strings encoded as JSON array + type: string + required: false + default: '["7.4", "8.0", "8.1"]' + db_versions: + description: Versions of databases to test with. Should be array of strings encoded as JSON array + type: string + required: false + default: '["mysql:5.7", "mariadb"]' + + php_ini_values: + description: PHP ini values + type: string + required: false + default: error_reporting=E_ALL + +env: + COMPOSER_ROOT_VERSION: dev-main + FLARUM_TEST_TMP_DIR_LOCAL: tests/integration/tmp + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + php: ${{ fromJSON(inputs.php_versions) }} + service: ${{ fromJSON(inputs.db_versions) }} + prefix: ['', flarum_] + + include: + - service: 'mysql:5.7' + db: MySQL + - service: mariadb + db: MariaDB + - prefix: flarum_ + prefixStr: (prefix) + + exclude: + - php: 8.0 + service: 'mysql:5.7' + prefix: flarum_ + - php: 8.0 + service: mariadb + prefix: flarum_ + + services: + mysql: + image: ${{ matrix.service }} + ports: + - 13306:3306 + + name: 'PHP ${{ matrix.php }} / ${{ matrix.db }} ${{ matrix.prefixStr }}' + + if: inputs.enable_backend_testing + + steps: + - uses: actions/checkout@master + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: xdebug + extensions: curl, dom, gd, json, mbstring, openssl, pdo_mysql, tokenizer, zip + tools: phpunit, composer:v2 + ini-values: ${{ inputs.php_ini_values }} + + # The authentication alter is necessary because newer mysql versions use the `caching_sha2_password` driver, + # which isn't supported prior to PHP7.4 + # When we drop support for PHP7.3, we should remove this from the setup. + - name: Create MySQL Database + run: | + sudo systemctl start mysql + mysql -uroot -proot -e 'CREATE DATABASE flarum_test;' --port 13306 + mysql -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';" --port 13306 + + - name: Install Composer dependencies + run: composer install + working-directory: ${{ inputs.backend_directory }} + + - name: Setup Composer tests + run: composer test:setup + working-directory: ${{ inputs.backend_directory }} + env: + DB_PORT: 13306 + DB_PASSWORD: root + DB_PREFIX: ${{ matrix.prefix }} + + - name: Run Composer tests + run: composer test + working-directory: ${{ inputs.backend_directory }} + env: + COMPOSER_PROCESS_TIMEOUT: 600 diff --git a/.github/workflows/REUSABLE_frontend.yml b/.github/workflows/REUSABLE_frontend.yml new file mode 100644 index 000000000..35532972d --- /dev/null +++ b/.github/workflows/REUSABLE_frontend.yml @@ -0,0 +1,215 @@ +name: Flarum Frontend Jobs + +on: + workflow_call: + inputs: + enable_bundlewatch: + description: "Enable Bundlewatch?" + type: boolean + default: false + required: false + enable_prettier: + description: "Enable Prettier?" + type: boolean + default: true + required: false + enable_typescript: + description: "Enable TypeScript?" + type: boolean + default: true + required: false + + backend_directory: + description: The directory of the project where backend code is located. This should contain a `composer.json` file, and is generally the root directory of the repo. + type: string + required: false + default: '.' + frontend_directory: + description: The directory of the project where frontend code is located. This should contain a `package.json` file. + type: string + required: false + default: './js' + main_git_branch: + description: The main git branch to use for the workflow. + type: string + required: false + default: main + node_version: + description: The node version to use for the workflow. + type: number + required: false + default: 16 + + js_package_manager: + description: "Enable TypeScript?" + type: string + default: yarn + required: false + secrets: + bundlewatch_github_token: + description: The GitHub token to use for Bundlewatch. + required: false + +env: + COMPOSER_ROOT_VERSION: dev-main + ci_script: ${{ inputs.js_package_manager == 'yarn' && 'yarn install --immutable' || 'npm ci' }} + cache_dependency_path: ${{ format(inputs.js_package_manager == 'yarn' && '{0}/yarn.lock' || '{0}/package-lock.json', inputs.frontend_directory) }} + +jobs: + bundlewatch: + name: Bundlewatch + runs-on: ubuntu-latest + if: inputs.enable_bundlewatch + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: ${{ inputs.node_version }} + cache: ${{ inputs.js_package_manager }} + cache-dependency-path: ${{ env.cache_dependency_path }} + + - name: Build production assets + uses: flarum/action-build@2 + with: + github_token: ${{ secrets.github_token }} + build_script: build + package_manager: ${{ inputs.js_package_manager }} + js_path: ${{ inputs.frontend_directory }} + do_not_commit: true + + - name: Check bundle size change + run: node_modules/.bin/bundlewatch --config .bundlewatch.config.json + working-directory: ${{ inputs.frontend_directory }} + env: + BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.bundlewatch_github_token }} + CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} + + prettier: + name: Prettier + runs-on: ubuntu-latest + if: inputs.enable_prettier + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: ${{ inputs.node_version }} + cache: ${{ inputs.js_package_manager }} + cache-dependency-path: ${{ env.cache_dependency_path }} + + - name: Install JS dependencies + run: ${{ env.ci_script }} + working-directory: ${{ inputs.frontend_directory }} + + - name: Check JS formatting + run: ${{ inputs.js_package_manager }} run format-check + working-directory: ${{ inputs.frontend_directory }} + + typecheck: + name: Typecheck + runs-on: ubuntu-latest + if: inputs.enable_typescript + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: ${{ inputs.node_version }} + cache: ${{ inputs.js_package_manager }} + cache-dependency-path: ${{ env.cache_dependency_path }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + extensions: curl, dom, gd, json, mbstring, openssl, pdo_mysql, tokenizer, zip + tools: composer:v2 + + # Needed since tsconfig draws typings from vendor folder. + - name: Install Composer dependencies + run: composer install + working-directory: ${{ inputs.backend_directory }} + + - name: Install JS dependencies + run: ${{ env.ci_script }} + working-directory: ${{ inputs.frontend_directory }} + + - name: Typecheck + run: ${{ inputs.js_package_manager }} run check-typings + working-directory: ${{ inputs.frontend_directory }} + + type-coverage: + name: Type Coverage + runs-on: ubuntu-latest + if: inputs.enable_typescript + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: ${{ inputs.node_version }} + cache: ${{ inputs.js_package_manager }} + cache-dependency-path: ${{ env.cache_dependency_path }} + + - name: Install JS dependencies + run: ${{ env.ci_script }} + working-directory: ${{ inputs.frontend_directory }} + + - name: Check type coverage + run: ${{ inputs.js_package_manager }} run check-typings-coverage + working-directory: ${{ inputs.frontend_directory }} + + build: + name: Build + runs-on: ubuntu-latest + if: "always() && !contains(needs.*.result, 'failed') && !contains(needs.*.result, 'cancelled')" + needs: [bundlewatch, prettier, typecheck, type-coverage] + + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: ${{ inputs.node_version }} + cache: ${{ inputs.js_package_manager }} + cache-dependency-path: ${{ env.cache_dependency_path }} + + # Our action will install npm/yarn, cd into `${{ inputs.frontend_directory }}`, build dist JS and typings, + # then commit and upload any changes iff we are on the main branch and have just pushed. + - name: Build production JS + if: inputs.enable_typescript + uses: flarum/action-build@2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + build_script: build + package_manager: ${{ inputs.js_package_manager }} + typings_script: build-typings + js_path: ${{ inputs.frontend_directory }} + do_not_commit: ${{ github.ref != format('refs/heads/{0}', inputs.main_git_branch) || github.event_name != 'push' }} + + # Our action will install npm/yarn, cd into `${{ inputs.frontend_directory }}`, build dist JS and typings, + # then commit and upload any changes iff we are on the main branch and have just pushed. + - name: Build production JS + if: "! inputs.enable_typescript" + uses: flarum/action-build@2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + build_script: build + package_manager: ${{ inputs.js_package_manager }} + js_path: ${{ inputs.frontend_directory }} + do_not_commit: ${{ github.ref != format('refs/heads/{0}', inputs.main_git_branch) || github.event_name != 'push' }} diff --git a/.github/workflows/flarum-akismet-backend.yml b/.github/workflows/flarum-akismet-backend.yml index 1b3d8b182..a493e93da 100644 --- a/.github/workflows/flarum-akismet-backend.yml +++ b/.github/workflows/flarum-akismet-backend.yml @@ -2,13 +2,9 @@ name: Akismet PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-akismet-frontend.yml b/.github/workflows/flarum-akismet-frontend.yml index 12dd509d8..a940c9bb0 100755 --- a/.github/workflows/flarum-akismet-frontend.yml +++ b/.github/workflows/flarum-akismet-frontend.yml @@ -2,13 +2,9 @@ name: Akismet JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-approval-backend.yml b/.github/workflows/flarum-approval-backend.yml index d820094d8..4dc308f87 100644 --- a/.github/workflows/flarum-approval-backend.yml +++ b/.github/workflows/flarum-approval-backend.yml @@ -2,13 +2,9 @@ name: Approval PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-approval-frontend.yml b/.github/workflows/flarum-approval-frontend.yml index 889834046..85755074f 100755 --- a/.github/workflows/flarum-approval-frontend.yml +++ b/.github/workflows/flarum-approval-frontend.yml @@ -2,13 +2,9 @@ name: Approval JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-core-backend.yml b/.github/workflows/flarum-core-backend.yml index e3aed728f..501757382 100644 --- a/.github/workflows/flarum-core-backend.yml +++ b/.github/workflows/flarum-core-backend.yml @@ -2,13 +2,9 @@ name: Core PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-core-frontend.yml b/.github/workflows/flarum-core-frontend.yml index 43090c411..cab1e31d7 100755 --- a/.github/workflows/flarum-core-frontend.yml +++ b/.github/workflows/flarum-core-frontend.yml @@ -2,13 +2,9 @@ name: Core JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: true enable_prettier: true diff --git a/.github/workflows/flarum-embed-backend.yml b/.github/workflows/flarum-embed-backend.yml index 605b270f1..41325d9d7 100644 --- a/.github/workflows/flarum-embed-backend.yml +++ b/.github/workflows/flarum-embed-backend.yml @@ -2,13 +2,9 @@ name: Embed PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-embed-frontend.yml b/.github/workflows/flarum-embed-frontend.yml index e51582a7f..47b35fddd 100755 --- a/.github/workflows/flarum-embed-frontend.yml +++ b/.github/workflows/flarum-embed-frontend.yml @@ -2,13 +2,9 @@ name: Embed JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-emoji-backend.yml b/.github/workflows/flarum-emoji-backend.yml index 999a35a83..ff8a402e9 100644 --- a/.github/workflows/flarum-emoji-backend.yml +++ b/.github/workflows/flarum-emoji-backend.yml @@ -2,13 +2,9 @@ name: Emoji PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-emoji-frontend.yml b/.github/workflows/flarum-emoji-frontend.yml index 4d1dc2866..b10646c06 100755 --- a/.github/workflows/flarum-emoji-frontend.yml +++ b/.github/workflows/flarum-emoji-frontend.yml @@ -2,13 +2,9 @@ name: Emoji JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-flags-backend.yml b/.github/workflows/flarum-flags-backend.yml index 06e2ac1d1..ec8f91d87 100644 --- a/.github/workflows/flarum-flags-backend.yml +++ b/.github/workflows/flarum-flags-backend.yml @@ -2,13 +2,9 @@ name: Flags PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-flags-frontend.yml b/.github/workflows/flarum-flags-frontend.yml index 156c00160..d2740271f 100755 --- a/.github/workflows/flarum-flags-frontend.yml +++ b/.github/workflows/flarum-flags-frontend.yml @@ -2,13 +2,9 @@ name: Flags JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-likes-backend.yml b/.github/workflows/flarum-likes-backend.yml index f3a7cd702..fefe1d25f 100644 --- a/.github/workflows/flarum-likes-backend.yml +++ b/.github/workflows/flarum-likes-backend.yml @@ -2,13 +2,9 @@ name: Likes PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-likes-frontend.yml b/.github/workflows/flarum-likes-frontend.yml index bf17a0414..98b1e1aaf 100755 --- a/.github/workflows/flarum-likes-frontend.yml +++ b/.github/workflows/flarum-likes-frontend.yml @@ -2,13 +2,9 @@ name: Likes JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-lock-backend.yml b/.github/workflows/flarum-lock-backend.yml index 768fe289d..a8ddba992 100644 --- a/.github/workflows/flarum-lock-backend.yml +++ b/.github/workflows/flarum-lock-backend.yml @@ -2,13 +2,9 @@ name: Lock PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-lock-frontend.yml b/.github/workflows/flarum-lock-frontend.yml index cdf281bfc..f0edaefb0 100755 --- a/.github/workflows/flarum-lock-frontend.yml +++ b/.github/workflows/flarum-lock-frontend.yml @@ -2,13 +2,9 @@ name: Lock JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-markdown-backend.yml b/.github/workflows/flarum-markdown-backend.yml index 098131aea..f1022fd5c 100644 --- a/.github/workflows/flarum-markdown-backend.yml +++ b/.github/workflows/flarum-markdown-backend.yml @@ -2,13 +2,9 @@ name: Markdown PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-markdown-frontend.yml b/.github/workflows/flarum-markdown-frontend.yml index 8e3688f88..850b236fd 100755 --- a/.github/workflows/flarum-markdown-frontend.yml +++ b/.github/workflows/flarum-markdown-frontend.yml @@ -2,13 +2,9 @@ name: Markdown JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-mentions-backend.yml b/.github/workflows/flarum-mentions-backend.yml index f2949790b..4955837bf 100644 --- a/.github/workflows/flarum-mentions-backend.yml +++ b/.github/workflows/flarum-mentions-backend.yml @@ -2,13 +2,9 @@ name: Mentions PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-mentions-frontend.yml b/.github/workflows/flarum-mentions-frontend.yml index b0c0f9dbe..df7a07aec 100755 --- a/.github/workflows/flarum-mentions-frontend.yml +++ b/.github/workflows/flarum-mentions-frontend.yml @@ -2,13 +2,9 @@ name: Mentions JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-nicknames-backend.yml b/.github/workflows/flarum-nicknames-backend.yml index 859b45d41..602bba515 100644 --- a/.github/workflows/flarum-nicknames-backend.yml +++ b/.github/workflows/flarum-nicknames-backend.yml @@ -2,13 +2,9 @@ name: Nicknames PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-nicknames-frontend.yml b/.github/workflows/flarum-nicknames-frontend.yml index e26e7d92d..5c42979cc 100755 --- a/.github/workflows/flarum-nicknames-frontend.yml +++ b/.github/workflows/flarum-nicknames-frontend.yml @@ -2,13 +2,9 @@ name: Nicknames JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-package-manager-backend.yml b/.github/workflows/flarum-package-manager-backend.yml index bb82c74d3..d831f11ff 100644 --- a/.github/workflows/flarum-package-manager-backend.yml +++ b/.github/workflows/flarum-package-manager-backend.yml @@ -2,13 +2,9 @@ name: Package Manager PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-package-manager-frontend.yml b/.github/workflows/flarum-package-manager-frontend.yml index ef2abe2d9..ef808a9b5 100755 --- a/.github/workflows/flarum-package-manager-frontend.yml +++ b/.github/workflows/flarum-package-manager-frontend.yml @@ -2,13 +2,9 @@ name: Package Manager JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-pusher-backend.yml b/.github/workflows/flarum-pusher-backend.yml index bba87e389..cc9216274 100644 --- a/.github/workflows/flarum-pusher-backend.yml +++ b/.github/workflows/flarum-pusher-backend.yml @@ -2,13 +2,9 @@ name: Pusher PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-pusher-frontend.yml b/.github/workflows/flarum-pusher-frontend.yml index b4bcef49c..66f258215 100755 --- a/.github/workflows/flarum-pusher-frontend.yml +++ b/.github/workflows/flarum-pusher-frontend.yml @@ -2,13 +2,9 @@ name: Pusher JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-statistics-backend.yml b/.github/workflows/flarum-statistics-backend.yml index 9b914691d..514222f9f 100644 --- a/.github/workflows/flarum-statistics-backend.yml +++ b/.github/workflows/flarum-statistics-backend.yml @@ -2,13 +2,9 @@ name: Statistics PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-statistics-frontend.yml b/.github/workflows/flarum-statistics-frontend.yml index e39e685ab..9b68b7805 100755 --- a/.github/workflows/flarum-statistics-frontend.yml +++ b/.github/workflows/flarum-statistics-frontend.yml @@ -2,13 +2,9 @@ name: Statistics JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-sticky-backend.yml b/.github/workflows/flarum-sticky-backend.yml index 8c212f415..3ec5a6dca 100644 --- a/.github/workflows/flarum-sticky-backend.yml +++ b/.github/workflows/flarum-sticky-backend.yml @@ -2,13 +2,9 @@ name: Sticky PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-sticky-frontend.yml b/.github/workflows/flarum-sticky-frontend.yml index 6f1eba871..e762b689e 100755 --- a/.github/workflows/flarum-sticky-frontend.yml +++ b/.github/workflows/flarum-sticky-frontend.yml @@ -2,13 +2,9 @@ name: Sticky JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-subscriptions-backend.yml b/.github/workflows/flarum-subscriptions-backend.yml index 1722c0db1..9cc08c2b7 100644 --- a/.github/workflows/flarum-subscriptions-backend.yml +++ b/.github/workflows/flarum-subscriptions-backend.yml @@ -2,13 +2,9 @@ name: Subscriptions PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-subscriptions-frontend.yml b/.github/workflows/flarum-subscriptions-frontend.yml index 79d835787..78e590b56 100755 --- a/.github/workflows/flarum-subscriptions-frontend.yml +++ b/.github/workflows/flarum-subscriptions-frontend.yml @@ -2,13 +2,9 @@ name: Subscriptions JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-suspend-backend.yml b/.github/workflows/flarum-suspend-backend.yml index 8af2f7968..193d35ea6 100644 --- a/.github/workflows/flarum-suspend-backend.yml +++ b/.github/workflows/flarum-suspend-backend.yml @@ -2,13 +2,9 @@ name: Suspend PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: false diff --git a/.github/workflows/flarum-suspend-frontend.yml b/.github/workflows/flarum-suspend-frontend.yml index 3842de0ab..47e9cd00d 100755 --- a/.github/workflows/flarum-suspend-frontend.yml +++ b/.github/workflows/flarum-suspend-frontend.yml @@ -2,13 +2,9 @@ name: Suspend JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: true diff --git a/.github/workflows/flarum-tags-backend.yml b/.github/workflows/flarum-tags-backend.yml index 5abbe9051..622090822 100644 --- a/.github/workflows/flarum-tags-backend.yml +++ b/.github/workflows/flarum-tags-backend.yml @@ -2,13 +2,9 @@ name: Tags PHP on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main + uses: ./.github/workflows/REUSABLE_backend.yml with: enable_backend_testing: true diff --git a/.github/workflows/flarum-tags-frontend.yml b/.github/workflows/flarum-tags-frontend.yml index 39cb26556..dc1f86c50 100755 --- a/.github/workflows/flarum-tags-frontend.yml +++ b/.github/workflows/flarum-tags-frontend.yml @@ -2,13 +2,9 @@ name: Tags JS on: [workflow_dispatch, push, pull_request] -# The reusable workflow definitions will be moved to the `flarum/framework` repo soon. -# This will break your current script. -# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure. - jobs: run: - uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main + uses: ./.github/workflows/REUSABLE_frontend.yml with: enable_bundlewatch: false enable_prettier: false