From 7014abdd0fceaf4ad6c7efafab617dc78bdd4622 Mon Sep 17 00:00:00 2001 From: Nicholas Avenell Date: Tue, 7 Apr 2026 13:16:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=EF=B8=8F=20Migrate=20to=20shared?= =?UTF-8?q?=20istic/shared-workflows=20reusable=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test-laravel: calls shared laravel-tests, renamed to "[Tests] Acceptance Testing" - auto-merge: updated trigger to match new test workflow name - auto-rebase, auto-manage-artifacts: delegate to shared workflows Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/auto-manage-artifacts.yml | 10 ++++ .github/workflows/auto-merge-dependabot.yml | 16 +++++++ .github/workflows/auto-rebase-dependabot.yml | 13 +++++ .github/workflows/tests.yml | 50 ++++---------------- 4 files changed, 47 insertions(+), 42 deletions(-) create mode 100644 .github/workflows/auto-manage-artifacts.yml create mode 100644 .github/workflows/auto-merge-dependabot.yml create mode 100644 .github/workflows/auto-rebase-dependabot.yml diff --git a/.github/workflows/auto-manage-artifacts.yml b/.github/workflows/auto-manage-artifacts.yml new file mode 100644 index 0000000..80b3352 --- /dev/null +++ b/.github/workflows/auto-manage-artifacts.yml @@ -0,0 +1,10 @@ +name: "[Auto] Artifacts Management" + +on: + schedule: + - cron: '0 1 * * *' + workflow_dispatch: + +jobs: + cleanup: + uses: istic/shared-workflows/.github/workflows/auto-manage-artifacts.yml@main diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml new file mode 100644 index 0000000..32b855f --- /dev/null +++ b/.github/workflows/auto-merge-dependabot.yml @@ -0,0 +1,16 @@ +name: "[Auto] Merge Dependabot Updates" + +on: + workflow_run: + workflows: ["[Tests] Acceptance Testing"] + types: + - completed + branches-ignore: + - 'main' + +jobs: + automerge: + uses: istic/shared-workflows/.github/workflows/auto-merge-dependabot.yml@main + permissions: + pull-requests: write + contents: write diff --git a/.github/workflows/auto-rebase-dependabot.yml b/.github/workflows/auto-rebase-dependabot.yml new file mode 100644 index 0000000..32b5b7a --- /dev/null +++ b/.github/workflows/auto-rebase-dependabot.yml @@ -0,0 +1,13 @@ +name: "[Auto] Rebase dependabot-updates onto main" + +on: + schedule: + - cron: "0 1 * * *" + workflow_dispatch: + +jobs: + rebase: + uses: istic/shared-workflows/.github/workflows/auto-rebase-dependabot.yml@main + permissions: + contents: write + pull-requests: write diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7088c47..d4aa486 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: tests +name: "[Tests] Acceptance Testing" on: push: @@ -9,46 +9,12 @@ on: branches: - develop - main - workflow_call: jobs: - ci: - runs-on: ubuntu-latest - environment: Testing - strategy: - matrix: - php-version: ["8.4", "8.5"] - - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - tools: composer:v2 - coverage: xdebug - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: ${{ vars.NODE_VERSION }} - - - name: Install Node Dependencies - run: npm i - - - name: Install Dependencies - run: composer install --no-interaction --prefer-dist --optimize-autoloader - - - name: Copy Environment File - run: cp .env.example .env - - - name: Generate Application Key - run: php artisan key:generate - - - name: Build Assets - run: npm run build - - - name: Run Tests - run: ./vendor/bin/pest + tests: + uses: istic/shared-workflows/.github/workflows/laravel-tests.yml@main + with: + php_versions: '["8.4", "8.5"]' + node_version: "22" + test_command: "vendor/bin/pest" + secrets: inherit # pragma: allowlist secret