Bump php from 8.4.1-alpine3.20 to 8.4.2-alpine3.20 #298
Workflow file for this run
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
on: pull_request | |
name: Check and lint | |
jobs: | |
php_version: | |
name: Lookup PHP version | |
runs-on: ubuntu-latest | |
outputs: | |
php_version: ${{ env.php_version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lookup PHP version | |
run: echo "php_versions=$(jq -r .config.platform.php)" >> "$GITHUB_ENV" | |
review_codestyle: | |
name: Codestyle | |
runs-on: ubuntu-latest | |
needs: php_version | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ needs.php_version.outputs.php_version }} | |
coverage: none | |
- name: Install Dependencies | |
run: composer install --no-interaction --no-progress | |
- name: Run phpcs | |
uses: reload/action-phpcs@main | |
with: | |
reviewdog_token: ${{ secrets.GITHUB_TOKEN }} | |
static_code_analysis: | |
name: Static Code Analysis | |
runs-on: ubuntu-latest | |
needs: php_version | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ needs.php_version.outputs.php_version }} | |
coverage: none | |
- name: Install Reviewdog | |
run: | | |
wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b "$PWD/" latest | |
- name: Install Dependencies | |
run: | | |
composer install --no-interaction --no-progress | |
- name: Static code analysis | |
run: | | |
php -d memory_limit=1G vendor/bin/phpstan analyse . --error-format=checkstyle | ./reviewdog -f=checkstyle -name=PHPStan -reporter=github-pr-check | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
unit_tests: | |
name: PHPUnit tests | |
runs-on: ubuntu-latest | |
needs: php_version | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ needs.php_version.outputs.php_version }} | |
coverage: none | |
- name: Install Dependencies | |
run: | | |
composer install --no-interaction --no-progress | |
- name: Unit tests | |
run: | | |
vendor/bin/phpunit | |
hadolint: | |
name: Hadolint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hadolint/[email protected] | |
markdown_lint: | |
name: Markdown lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install problem matcher | |
uses: xt0rted/markdownlint-problem-matcher@v3 | |
- name: Lint README.md file | |
uses: nosborn/[email protected] | |
with: | |
files: './README.md' | |
docker_build: | |
name: Test Docker build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build docker image | |
run: docker build -t reload/drupal-security-jira:test . | |
- name: Test image | |
run: docker run --rm reload/drupal-security-jira:test --version |