diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..3b08be4 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ +**Resolves** + + +**Changes proposed in this pull request:** + + +**Reviewers should focus on:** + + +**Screenshot** + diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml new file mode 100644 index 0000000..c9ed0f2 --- /dev/null +++ b/.github/workflows/backend.yml @@ -0,0 +1,16 @@ +name: GB Redis Setup PHP + +on: [workflow_dispatch, push, pull_request] + +jobs: + run: + uses: flarum/framework/.github/workflows/REUSABLE_backend.yml@1.x + with: + enable_backend_testing: false + enable_phpstan: false + php_versions: '["7.4", "8.0", "8.1", "8.2", "8.3"]' + + backend_directory: . + + secrets: + composer_auth: '{"bearer":{"extiverse.com": "${{secrets.EXTIVERSE_COMPOSER_TOKEN}}"}}' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index a8bdee6..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: JS - -on: [workflow_dispatch, push, pull_request] - -env: - NODE_VERSION: 16 - -jobs: - prettier: - name: Prettier - runs-on: ubuntu-latest - - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NODE_VERSION }} - cache: 'yarn' - cache-dependency-path: js/yarn.lock - - - name: Install JS dependencies - run: yarn install --immutable - working-directory: ./js - - - name: Check JS formatting - run: yarn run format-check - working-directory: ./js - - build-prod: - name: Build and commit - runs-on: ubuntu-latest - needs: [prettier] - - # Only commit JS on push to master branch - # Remember to change in `build-test` job too - if: github.ref == 'refs/heads/master' && github.event_name == 'push' - - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NODE_VERSION }} - cache: 'yarn' - cache-dependency-path: js/yarn.lock - - # Our action will install node, npm and yarn, cd into `./js`, run `yarn run build` (and - # `yarn run build-typings` if desired), then commit and upload any changes - - name: Build production JS - uses: flarum/action-build@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - build_script: build - package_manager: yarn - # typings_script: build-typings - - build-test: - name: Test build - runs-on: ubuntu-latest - needs: [prettier] - - # Inverse check of `build-prod` - # Remember to change in `build-prod` job too - if: github.ref != 'refs/heads/master' || github.event_name != 'push' - - steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NODE_VERSION }} - cache: 'yarn' - cache-dependency-path: js/yarn.lock - - # Our action will install node, npm and yarn, cd into `./js`, run `yarn run build` (and - # `yarn run build-typings` if desired). It will NOT commit and upload. - - name: Build production JS - uses: flarum/action-build@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - build_script: build - package_manager: yarn - # typings_script: build-typings - do_not_commit: true diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 0000000..2a786cf --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,20 @@ +name: GB Redis Setup JS + +on: [workflow_dispatch, push, pull_request] + +jobs: + run: + uses: flarum/framework/.github/workflows/REUSABLE_frontend.yml@1.x + with: + enable_bundlewatch: false + enable_prettier: true + enable_typescript: false + + frontend_directory: ./js + backend_directory: . + js_package_manager: yarn + main_git_branch: master + + secrets: + bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} + composer_auth: '{"bearer":{"extiverse.com": "${{secrets.EXTIVERSE_COMPOSER_TOKEN}}"}}' diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..1e6d5c1 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,14 @@ +name: GB Redis Setup Sync + +on: + workflow_dispatch: + push: + tags: + - '*' + +jobs: + run: + uses: glowingblue/flarum-workflow-sync/.github/workflows/sync.yml@master + secrets: inherit + with: + tag: ${{ github.ref_name }}