Skip to content

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 17094e5 commit 53e4230
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 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
Expand Down
12 changes: 6 additions & 6 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 }}"
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04

strategy:
matrix:
Expand All @@ -21,7 +21,7 @@ jobs:

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

- name: "Build environment"
uses: shivammathur/setup-php@v2
Expand All @@ -38,7 +38,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 @@ -54,13 +54,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 53e4230

Please sign in to comment.