Initial Drupal 11 with DDEV setup
This commit is contained in:
62
vendor/grasmash/expander/.github/workflows/php.yml
vendored
Normal file
62
vendor/grasmash/expander/.github/workflows/php.yml
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: "ubuntu-latest"
|
||||
php: "8.0"
|
||||
coverage: "none"
|
||||
- os: "ubuntu-latest"
|
||||
php: "8.1"
|
||||
coverage: "pcov"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
# Only report coverage once
|
||||
coverage: ${{ matrix.coverage }}
|
||||
|
||||
- name: Validate composer.json and composer.lock
|
||||
run: composer validate --strict
|
||||
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-php-
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer -n install --prefer-dist -o
|
||||
|
||||
- name: Run test suite
|
||||
if: matrix.coverage == 'none'
|
||||
run: composer run-script test
|
||||
|
||||
- name: Run coverage
|
||||
if: matrix.coverage == 'pcov'
|
||||
run: composer run-script coverage
|
||||
|
||||
- name: Upload coverage results to Coveralls
|
||||
if: matrix.coverage == 'pcov'
|
||||
env:
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: composer run-script coveralls
|
||||
Reference in New Issue
Block a user