Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal authored Oct 2, 2024
1 parent 78ab618 commit ece1208
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests
on: [push, pull_request,workflow_dispatch]
jobs:
router-tests:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['8. 3']
phpunit-versions: ['latest']
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.3'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Update Composer
run: sudo composer self-update --no-interaction
- name: Run Composer Install
run: composer install --no-interaction
- name: run tests
run: vendor/bin/pest --coverage-clover ./clover.xml
- name: run static analysis
run: vendor/bin/phpstan analyse src --level 8
- name: Upload to Codecov
uses: codecov/codecov-action@v4

0 comments on commit ece1208

Please sign in to comment.