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