composer(deps-dev): bump phpunit/phpunit from 11.4.3 to 11.4.4 #1280
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
name: CI | |
on: [push] | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
php: ['8.2'] | |
go: ['1.22'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Go | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: ${{ matrix.go }} | |
cache: true | |
- name: Install scip | |
run: | | |
git clone https://github.com/sourcegraph/scip.git --depth=1 | |
cd scip | |
go build -o scip ./cmd/scip | |
mv scip /usr/local/bin/scip | |
- name: Install PHP | |
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
- name: Validate composer | |
run: composer validate --strict --check-lock --with-dependencies | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress | |
- name: Test | |
run: vendor/bin/phpunit --coverage-text --coverage-cobertura=coverage.xml --colors=never | |
env: | |
XDEBUG_MODE: coverage | |
- name: Upload coverage | |
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7 | |
lint-phpcs: | |
name: PHP CodeSniffer | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
php: ['8.2', '8.3'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Validate composer | |
run: composer validate --strict --check-lock --with-dependencies | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress | |
- name: PHP CodeSniffer | |
run: vendor/bin/phpcs --no-colors | |
lint-phpstan: | |
name: PHPStan | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
php: ['8.2'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Validate composer | |
run: composer validate --strict --check-lock --with-dependencies | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress | |
- name: PHPStan | |
run: vendor/bin/phpstan | |
lint-composer-audit: | |
name: Composer audit | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
php: ['8.2'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Validate composer | |
run: composer validate --strict --check-lock --with-dependencies | |
- name: Audit | |
run: composer audit --locked --no-interaction | |
scip: | |
name: SCIP | |
needs: [test, lint-phpstan, lint-phpcs] | |
if: github.repository == 'davidrjenni/scip-php' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | |
- name: Install dependencies | |
run: composer install --no-interaction --no-progress | |
- name: Generate SCIP data | |
uses: davidrjenni/scip-php@main | |
with: | |
entrypoint: /usr/bin/scip-php | |
# - name: Upload SCIP index | |
# uses: davidrjenni/scip-php@main | |
# with: | |
# entrypoint: /usr/bin/src | |
# args: code-intel upload -repo=github.com/${{ github.repository }} -commit=${{ github.sha }} -root=${{ github.workspace }} -github-token=${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
name: Build and push image | |
needs: [scip] | |
if: | | |
github.repository == 'davidrjenni/scip-php' && | |
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Login to GitHub container registry | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata for Docker | |
id: meta | |
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1 | |
with: | |
images: | | |
davidrjenni/scip-php | |
ghcr.io/davidrjenni/scip-php | |
- name: Build and push | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |