Skip to content

Commit

Permalink
Merge pull request #73 from Glennmen/github-action
Browse files Browse the repository at this point in the history
Added github action for tests
  • Loading branch information
Cannonb4ll authored Oct 29, 2022
2 parents 6d83f30 + f890e8c commit 1631501
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/php_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PHP Composer

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: [ '7.3', '7.4', '8.0', '8.1' ]

name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

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

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

#- name: Run test suite
# env:
# API_TOKEN: ${{ secrets.TEST_API_KEY }}
# run: composer test

0 comments on commit 1631501

Please sign in to comment.