-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from microsoft/dev
Release 1.3.0
- Loading branch information
Showing
4 changed files
with
99 additions
and
8 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -7,30 +7,51 @@ on: | |
pull_request: | ||
branches: [ main, dev ] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.4', '8.0', '8.1', '8.2'] | ||
php-versions: ['7.4', '8.1', '8.2', '8.3'] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup PHP and Xdebug for Code Coverage report | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: xdebug | ||
coverage: none | ||
- name: Install dependencies | ||
run: composer install | ||
- name: Run static analysis | ||
run: ./vendor/bin/phpstan | ||
- name: Run tests | ||
run: ./vendor/bin/phpunit | ||
|
||
code-coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup PHP and Xdebug for Code Coverage report | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
coverage: xdebug | ||
- name: Install dependencies | ||
run: composer install | ||
- name: Run static analysis | ||
run: ./vendor/bin/phpstan | ||
- name: Run tests with coverage | ||
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml | ||
- name: Fix code coverage paths | ||
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml | ||
- name: SonarCloud Scan | ||
if: ${{ matrix.php-versions == '8.0' && !github.event.pull_request.head.repo.fork }} | ||
if: ${{ !github.event.pull_request.head.repo.fork }} | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
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