Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Aug 25, 2023
1 parent 844546d commit d11c505
Show file tree
Hide file tree
Showing 37 changed files with 301 additions and 1,475 deletions.
40 changes: 40 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Prepare PHP
description: Prepare the PHP environment

inputs:
php:
description: The PHP version to use
required: true
coverage:
description: The coverage extension to use
required: false
default: 'none'
extensions:
description: The PHP extensions to use
required: false
default: 'none, mbstring'

runs:
using: composite

steps:
- name: Setup PHP
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected]
with:
php-version: ${{ input.php }}
extensions: ${{ input.extensions }}
coverage: ${{ input.coverage }}

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

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

- name: Install dependencies
run: composer install --prefer-dist --no-progress
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
59 changes: 0 additions & 59 deletions .github/workflows/common.checks.create.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/common.pr-details.get.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/common.pr-details.save.yml

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/common.pull-request.edited.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/common.pull-request.labeled.vetted.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/common.pull-request.labeled.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/common.pull-request.modified.unvet.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/common.pull-request.modified.yml

This file was deleted.

Loading

0 comments on commit d11c505

Please sign in to comment.