From bdf87cb5c5cd99022daf1a3ee4553100428c8cbc Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Tue, 27 Jun 2023 06:57:13 -0500 Subject: [PATCH] Adding Github workflow. --- .github/CODEOWNERS | 1 + .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ .gitignore | 1 + 3 files changed, 38 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/ci.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..9b303e8 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @davereid diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dcec76e --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.gitignore b/.gitignore index 9a0f703..63ed01d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /vendor/ /.idea/ /.phpunit.cache/ +.DS_Store