Skip to content

Commit

Permalink
Merge pull request #7 from tanhongit/develop
Browse files Browse the repository at this point in the history
create composer setup and tests action
  • Loading branch information
tanhongit authored Oct 8, 2023
2 parents 391d355 + 1d282ff commit 7b25178
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/setup_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Setup and test

on: [ push, pull_request ]

jobs:
tests:
name: Composer setup and tests
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
composer install --no-interaction --no-progress --no-suggest
- name: Run tests
run: |
composer validate --strict

0 comments on commit 7b25178

Please sign in to comment.