generated from zingimmick/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1f267f
commit a18d7e9
Showing
2 changed files
with
10 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: lint | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
|
@@ -7,28 +7,6 @@ on: | |
- master | ||
|
||
jobs: | ||
ecs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [7.2, 7.3, 7.4, 8.0] | ||
|
||
name: PHP ${{ matrix.php }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php }} | ||
|
||
- name: Install dependencies | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: "highest" | ||
|
||
- name: Execute code standard tests | ||
run: composer run-script lint | ||
lint: | ||
name: Lint | ||
uses: zingimmick/.github/.github/workflows/lint.yml@main |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: tests | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
|
@@ -10,48 +10,8 @@ on: | |
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [7.2, 7.3, 7.4, 8.0] | ||
stability: [lowest, highest] | ||
|
||
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Install dependencies | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
dependency-versions: ${{ matrix.stability }} | ||
|
||
- name: Execute tests | ||
run: composer run-script test:phpunit -- --coverage-clover coverage.xml | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
continue-on-error: true | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: Upload coverage to Code Climate | ||
uses: paambaati/[email protected] | ||
continue-on-error: true | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageCommand: ls | ||
coverageLocations: ${{github.workspace}}/coverage.xml:clover | ||
name: Tests | ||
uses: zingimmick/.github/.github/workflows/tests-laravel.yml@main | ||
secrets: | ||
codecov-token: ${{ secrets.CODECOV_TOKEN }} | ||
cc-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }} |