-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: separate tests per PHP verion + review of README badges
- Loading branch information
Showing
5 changed files
with
175 additions
and
132 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
name: "Test & lint PHP 5.6" | ||
run-name: "[php 5.6] Run PHPUnit + Mess-Detector" | ||
|
||
on: | ||
push: | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
|
||
run_tests_php56: | ||
name: "[php 5.6] tests & validation" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
|
||
- name: Setup PHP 5.6 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '5.6' | ||
|
||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
version: "2.2" | ||
php_version: "5.6" | ||
|
||
- name: Test the console | ||
run: php ./bin/markdown-extended | ||
|
||
- name: Run Mess-Detector | ||
uses: php-actions/composer@v6 | ||
with: | ||
version: "2.2" | ||
php_version: "5.6" | ||
command: run messdetector-with-baseline | ||
|
||
- name: Run unit tests | ||
run: php ./bin/phpunit --no-coverage --testdox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
name: "Test & lint PHP 7.4" | ||
run-name: "[php 7.4] Run PHPUnit + Mess-Detector + CS-Fixer" | ||
|
||
on: | ||
push: | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
|
||
run_tests_php74: | ||
name: "[php 7.4] tests & validation" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
|
||
- name: Setup PHP 7.4 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
|
||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
|
||
- name: Test the console | ||
run: php ./bin/markdown-extended | ||
|
||
- name: Run CS-Fixer | ||
uses: php-actions/composer@v6 | ||
with: | ||
command: run cs-fixer-ci | ||
|
||
- name: Run Mess-Detector | ||
uses: php-actions/composer@v6 | ||
with: | ||
command: run messdetector-with-baseline | ||
|
||
- name: Run unit tests | ||
run: composer run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
name: "Test & lint PHP 8.3" | ||
run-name: "[php 8.3] Run PHPUnit + Mess-Detector + CS-Fixer" | ||
|
||
on: | ||
push: | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
|
||
run_tests_php83: | ||
name: "[php 8.3] tests & validation" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
id-token: write # to enable use of OIDC for npm provenance | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
|
||
- name: Setup PHP 8.3 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: "8.3" | ||
|
||
- name: Test the console | ||
run: php ./bin/markdown-extended | ||
|
||
- name: Run CS-Fixer | ||
uses: php-actions/composer@v6 | ||
with: | ||
php_version: "8.3" | ||
command: run cs-fixer-ci | ||
|
||
- name: Run Mess-Detector | ||
uses: php-actions/composer@v6 | ||
with: | ||
command: run messdetector-with-baseline | ||
|
||
- name: Run unit tests | ||
run: composer run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters