Skip to content

Commit

Permalink
Let Copilot rewrite the workflow for me
Browse files Browse the repository at this point in the history
  • Loading branch information
edgrosvenor committed Jan 18, 2025
1 parent 3c78c32 commit d0a38b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,54 @@
name: Checks

on:
push:

jobs:
lint:
if: contains(github.event.head_commit.message, '#nodeploy') == false
uses: ./.github/workflows/lint.yml

test:
if: contains(github.event.head_commit.message, '#nodeploy') == false
uses: ./.github/workflows/test.yml
secrets: inherit

stan:
if: contains(github.event.head_commit.message, '#nodeploy') == false
uses: ./.github/workflows/stan.yml
secrets: inherit

deploy:
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '#nodeploy')
runs-on: ubuntu-latest
needs: [ lint, test, stan ]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
coverage: none

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Setup composer cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install composer dependencies
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Split
if: success()
run: php artisan kibble:split
Expand Down

0 comments on commit d0a38b5

Please sign in to comment.