Skip to content

Commit

Permalink
Merge pull request #64 from churchtools/github-actions
Browse files Browse the repository at this point in the history
Add GitHub Actions Matrix Strategy
  • Loading branch information
obstschale authored Jan 12, 2022
2 parents 45ec49a + 9d152f1 commit 4393f61
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 61 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,25 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
operating-system: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
php-versions: [ '7.4', '8.0', '8.1' ]

steps:
- uses: actions/checkout@v2

- name: Setup PHP 7.3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
php-version: ${{ matrix.php-versions }}
tools: composer:v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
Expand Down
120 changes: 62 additions & 58 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4393f61

Please sign in to comment.