Migrated all workflows to ubuntu-22.04

This commit is contained in:
Alejandro Celaya 2022-08-01 17:13:34 +02:00
parent 25a7c7bc7f
commit b2ca4ad66b
4 changed files with 16 additions and 16 deletions

View file

@ -10,7 +10,7 @@ on:
jobs: jobs:
static-analysis: static-analysis:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']
@ -29,7 +29,7 @@ jobs:
id: composer-cache id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)" run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.composer-cache.outputs.dir }} path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@ -39,7 +39,7 @@ jobs:
- run: composer ${{ matrix.command }} - run: composer ${{ matrix.command }}
tests: tests:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']
@ -62,7 +62,7 @@ jobs:
id: composer-cache id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)" run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.composer-cache.outputs.dir }} path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@ -79,7 +79,7 @@ jobs:
build/coverage-${{ matrix.test-group }}.cov build/coverage-${{ matrix.test-group }}.cov
db-tests: db-tests:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']
@ -107,7 +107,7 @@ jobs:
id: composer-cache id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)" run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.composer-cache.outputs.dir }} path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@ -132,7 +132,7 @@ jobs:
needs: needs:
- tests - tests
- db-tests - db-tests
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']
@ -152,7 +152,7 @@ jobs:
id: composer-cache id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)" run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ steps.composer-cache.outputs.dir }} path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
@ -173,7 +173,7 @@ jobs:
needs: needs:
- tests - tests
- db-tests - db-tests
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']
@ -203,7 +203,7 @@ jobs:
needs: needs:
- mutation-tests - mutation-tests
- upload-coverage - upload-coverage
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: geekyeggo/delete-artifact@v1 - uses: geekyeggo/delete-artifact@v1
with: with:
@ -213,7 +213,7 @@ jobs:
coverage-api coverage-api
build-docker-image: build-docker-image:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2

View file

@ -9,7 +9,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']
@ -32,7 +32,7 @@ jobs:
publish: publish:
needs: ['build'] needs: ['build']
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -50,7 +50,7 @@ jobs:
delete-artifacts: delete-artifacts:
needs: ['publish'] needs: ['publish']
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']

View file

@ -7,7 +7,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php-version: ['8.1'] php-version: ['8.1']