Skip to content

Commit

Permalink
Adding Github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
davereid-pfg committed Jun 27, 2023
1 parent 1287f0c commit bdf87cb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @davereid
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
name: Test PHP ${{ matrix.php }} - ${{ matrix.os }}
runs-on: ${{ matrix.php }}
strategy:
matrix:
php: ['8.0', '8.1', '8.2']
os: ['ubuntu-latest']
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: composer diagnose
- run: composer install
- run: composer audit
- run: composer run test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/vendor/
/.idea/
/.phpunit.cache/
.DS_Store

0 comments on commit bdf87cb

Please sign in to comment.