diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f54eb00..4f5345e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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/checkout@v2.4.0 - - - name: Setup PHP - uses: shivammathur/setup-php@2.15.0 - 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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f3791f8..138c265 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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/checkout@v2.4.0 - - - name: Setup PHP - uses: shivammathur/setup-php@2.15.0 - 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/codecov-action@v2.1.0 - continue-on-error: true - with: - token: ${{ secrets.CODECOV_TOKEN }} - - - name: Upload coverage to Code Climate - uses: paambaati/codeclimate-action@v3.0.0 - 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 }}