Skip to content

Commit

Permalink
Update workflows (#19370)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw authored Apr 27, 2022
1 parent e234e48 commit 4c32d90
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 37 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php: [5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]

steps:
- name: Generate french locale
run: sudo locale-gen fr_FR.UTF-8
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -53,7 +53,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -94,7 +94,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/ci-mssql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@ jobs:
strategy:
matrix:
include:
- php: '7.0'
- php: 7.0
extensions: pdo, pdo_sqlsrv-5.8.1
mssql: 'server:2017-latest'
- php: '7.1'
mssql: server:2017-latest
- php: 7.1
extensions: pdo, pdo_sqlsrv-5.8.1
mssql: 'server:2017-latest'
- php: '7.2'
mssql: server:2017-latest
- php: 7.2
extensions: pdo, pdo_sqlsrv-5.8.1
mssql: 'server:2017-latest'
- php: '7.3'
mssql: server:2017-latest
- php: 7.3
extensions: pdo, pdo_sqlsrv-5.8.1
mssql: 'server:2017-latest'
- php: '7.4'
mssql: server:2017-latest
- php: 7.4
extensions: pdo, pdo_sqlsrv
mssql: 'server:2017-latest'
- php: '7.4'
mssql: server:2017-latest
- php: 7.4
extensions: pdo, pdo_sqlsrv
mssql: 'server:2019-latest'
- php: '8.0'
mssql: server:2019-latest
- php: 8.0
extensions: pdo, pdo_sqlsrv
mssql: 'server:2017-latest'
- php: '8.0'
mssql: server:2017-latest
- php: 8.0
extensions: pdo, pdo_sqlsrv
mssql: 'server:2019-latest'
mssql: server:2019-latest

services:
mssql:
Expand All @@ -54,7 +54,7 @@ jobs:

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

- name: Create MS SQL Database
run: docker exec -i mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE yiitest'
Expand All @@ -71,7 +71,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- ubuntu-latest

php-version:
- "7.4"
- 7.4

mysql-version:
- "latest"
- latest

services:
mysql:
Expand All @@ -36,7 +36,7 @@ jobs:

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

- name: Setup cache environment
id: cache-env
Expand All @@ -47,7 +47,7 @@ jobs:
key: ${{ env.key }}

- name: Cache extensions
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.cache-env.outputs.dir }}
key: ${{ steps.cache-env.outputs.key }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- ubuntu-latest

php:
- "7.4"
- 7.4

services:
oci:
Expand All @@ -31,7 +31,7 @@ jobs:

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

- name: Setup cache environment
id: cache-env
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/ci-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
- ubuntu-latest

php-version:
- "7.4"
- 7.4

pgsql-version:
- "10"
- "11"
- "12"
- "13"
- 10
- 11
- 12
- 13
- 14

services:
postgres:
Expand All @@ -40,7 +41,7 @@ jobs:

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

- name: Setup cache environment
id: cache-env
Expand Down Expand Up @@ -70,7 +71,7 @@ jobs:
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Cache dependencies installed with composer
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
Expand Down

0 comments on commit 4c32d90

Please sign in to comment.