-
-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub Actions: Update typisttech/.github to v3
#27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Audit | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '12 3 * * 1' # Weekly on Monday | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref_name }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| php: | ||
| uses: typisttech/.github/.github/workflows/audit-php.yml@v3 |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Format | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref_name }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| php: | ||
| uses: typisttech/.github/.github/workflows/format-php.yml@v3 | ||
| secrets: inherit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Lint | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| php: | ||
| uses: typisttech/.github/.github/workflows/lint-php.yml@v3 | ||
| with: | ||
| phpstan: false |
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,8 @@ | |||||
| push: | ||||||
| branches: | ||||||
| - main | ||||||
| tags: | ||||||
| - '**' | ||||||
|
|
||||||
| concurrency: | ||||||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | ||||||
|
|
@@ -17,42 +19,43 @@ | |||||
|
|
||||||
| jobs: | ||||||
| php-matrix: | ||||||
| uses: typisttech/.github/.github/workflows/php-matrix.yml@v2 | ||||||
| permissions: | ||||||
| contents: read | ||||||
| runs-on: ubuntu-latest | ||||||
| outputs: | ||||||
| versions: ${{ steps.php-matrix.outputs.versions }} | ||||||
| highest: ${{ steps.php-matrix.outputs.highest }} | ||||||
| steps: | ||||||
| - uses: actions/checkout@v5 | ||||||
| with: | ||||||
| sparse-checkout: composer.json | ||||||
| sparse-checkout-cone-mode: false | ||||||
|
|
||||||
| - uses: typisttech/php-matrix-action@v2 | ||||||
Check warningCode scanning / CodeQL Unpinned tag for a non-immutable Action in workflow Medium test
Unpinned 3rd party Action 'Test' step
Uses Step: php-matrix Error loading related location Loading |
||||||
| id: php-matrix | ||||||
|
|
||||||
| pest: | ||||||
| runs-on: ubuntu-latest | ||||||
| needs: php-matrix | ||||||
| strategy: | ||||||
| matrix: | ||||||
| php: ${{ fromJSON(needs.php-matrix.outputs.versions) }} | ||||||
| dependency-versions: [lowest, highest] | ||||||
| coverage: [none] | ||||||
| php-version: ${{ fromJSON(needs.php-matrix.outputs.versions) }} | ||||||
| coverage: ['none'] | ||||||
|
Comment on lines
+39
to
+40
|
||||||
| exclude: | ||||||
| - php: ${{ needs.php-matrix.outputs.highest }} | ||||||
| dependency-versions: highest | ||||||
| coverage: none | ||||||
| - php-version: ${{ needs.php-matrix.outputs.highest }} | ||||||
| coverage: 'none' | ||||||
| include: | ||||||
| - php: ${{ needs.php-matrix.outputs.highest }} | ||||||
| dependency-versions: highest | ||||||
| - php-version: ${{ needs.php-matrix.outputs.highest }} | ||||||
| coverage: xdebug | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - uses: actions/checkout@v5 | ||||||
|
|
||||||
| - uses: shivammathur/setup-php@v2 | ||||||
| with: | ||||||
| php-version: ${{ matrix.php }} | ||||||
| php-version: ${{ matrix.php-version }} | ||||||
| coverage: ${{ matrix.coverage }} | ||||||
| env: | ||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
|
||||||
| - uses: ramsey/composer-install@v3 | ||||||
| with: | ||||||
| dependency-versions: ${{ matrix.dependency-versions }} | ||||||
| composer-options: --no-audit --optimize-autoloader | ||||||
|
|
||||||
| - run: composer pest:unit -- --ci --coverage-clover coverage.xml | ||||||
| - run: composer pest:unit -- --ci --coverage-clover coverage-unit.xml | ||||||
| if: ${{ matrix.coverage == 'xdebug' }} | ||||||
|
|
||||||
| - run: composer pest:unit -- --ci | ||||||
|
|
@@ -65,17 +68,24 @@ | |||||
| if: ${{ matrix.coverage == 'xdebug' }} | ||||||
| with: | ||||||
| name: coverage | ||||||
| path: coverage.xml | ||||||
| path: coverage-unit.xml | ||||||
|
|
||||||
| codecov: | ||||||
| needs: pest | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| id-token: write | ||||||
| steps: | ||||||
| - uses: actions/checkout@v5 | ||||||
|
|
||||||
| - uses: actions/download-artifact@v5 | ||||||
| with: | ||||||
| name: coverage | ||||||
|
|
||||||
| - uses: codecov/codecov-action@v5 | ||||||
| with: | ||||||
| use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} | ||||||
| use_oidc: true | ||||||
|
||||||
| use_oidc: true | |
| use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium