Skip to content

Commit

Permalink
Github Actions + autoload-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chillbram committed Nov 15, 2024
1 parent b0b42fe commit e3b8f7d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PHPUnit tests

on:
pull_request:
branches: [ "main" ]

jobs:
test:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.3]
stability: [prefer-lowest, prefer-stable]

runs-on: ${{ matrix.os }}

name: PHP${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
},
"autoload": {
"psr-4": {
"Cradeq\\CommonMark\\BreakTagExtension\\": "src/",
"Cradeq\\CommonMark\\BreakTagExtension\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Cradeq\\CommonMark\\BreakTagExtension\\Tests\\": "tests/"
}
}
Expand Down

0 comments on commit e3b8f7d

Please sign in to comment.