Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Update GitHub workflows configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Nov 24, 2022
1 parent 63e67e9 commit 3b1f1cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# .github/workflows/analysis.yml
name: "analysis"
name: "Static analysis"

on: [ push ]

jobs:

build:
name: "PHPStan"
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Build environment"
uses: shivammathur/setup-php@v2
Expand All @@ -28,7 +28,7 @@ jobs:
- name: "Application"
run: |
mkdir -p build/logs
wget -c -nc --retry-connrefused --tries=0 https://github.com/phpstan/phpstan/releases/download/0.12.99/phpstan.phar -O phpstan.phar
wget -c -nc --retry-connrefused --tries=0 https://github.com/phpstan/phpstan/releases/download/1.4.10/phpstan.phar -O phpstan.phar
chmod +x phpstan.phar
php phpstan.phar --version
echo -e "parameters:\n level: 0\n excludePaths:\n - \"Resources/*\"\n - \"Tests/*\"\n - \"vendor/*\"" > phpstan.neon
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# .github/workflows/build.yml
name: "build"
name: "Unit tests"

on: [ push ]

jobs:

build:
name: "PHP ${{ matrix.php-version }}${{ matrix.symfony-label }}"
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

strategy:
matrix:
Expand Down Expand Up @@ -36,11 +36,10 @@ jobs:
- php-version: "7.2"
symfony-version: "5.4.*"
symfony-label: ": Symfony 5.4.*"
max-parallel: 1

steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Build environment"
uses: shivammathur/setup-php@v2
Expand All @@ -59,7 +58,7 @@ jobs:
- name: "Application"
run: |
mkdir -p build/logs
wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.2/php-coveralls.phar -O coveralls.phar
wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.5.3/php-coveralls.phar -O coveralls.phar
chmod +x coveralls.phar
php coveralls.phar --version
Expand All @@ -75,13 +74,13 @@ jobs:

coverage:
name: "Coverage"
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
needs: "build"
if: always()

steps:
- name: "Coverage"
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
8 changes: 4 additions & 4 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# .github/workflows/metrics.yml
name: "metrics"
name: "Metrics"

on: [ push ]

jobs:

build:
name: "PHP Metrics"
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: "Build environment"
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
zip -r ../report.zip * -x junit.xml
- name: "Upload artifact"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: "metrics"
path: build/report.zip

0 comments on commit 3b1f1cf

Please sign in to comment.