Skip to content

Commit d92e9b8

Browse files
authored
Merge pull request #84 from blocknotes/ci/update-gh-workflows
CI: update GitHub workflows
2 parents c1db2ff + 97368e5 commit d92e9b8

15 files changed

Lines changed: 46 additions & 67 deletions

.github/workflows/specs_mssql_rails61.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ jobs:
1818
env:
1919
DB_TEST: mssql
2020
RAILS_VERSION: 6.1
21+
RUBY_VERSION: ${{ matrix.ruby }}
2122

2223
services:
2324
mssql:
2425
image: mcr.microsoft.com/mssql/server:2022-latest
2526
env:
2627
ACCEPT_EULA: 'Y'
2728
SA_PASSWORD: Pa%%w0rd
29+
options: >-
30+
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -C -Q 'SELECT 1' || /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -Q 'SELECT 1'"
31+
--health-interval 10s
32+
--health-timeout 5s
33+
--health-retries 10
2834
ports:
2935
- 1433:1433
3036

.github/workflows/specs_mssql_rails72.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ jobs:
1818
env:
1919
DB_TEST: mssql
2020
RAILS_VERSION: 7.2
21+
RUBY_VERSION: ${{ matrix.ruby }}
2122

2223
services:
2324
mssql:
2425
image: mcr.microsoft.com/mssql/server:2022-latest
2526
env:
2627
ACCEPT_EULA: 'Y'
2728
SA_PASSWORD: Pa%%w0rd
29+
options: >-
30+
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -C -Q 'SELECT 1' || /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -Q 'SELECT 1'"
31+
--health-interval 10s
32+
--health-timeout 5s
33+
--health-retries 10
2834
ports:
2935
- 1433:1433
3036

.github/workflows/specs_mssql_rails80.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ jobs:
1818
env:
1919
DB_TEST: mssql
2020
RAILS_VERSION: 8.0
21+
RUBY_VERSION: ${{ matrix.ruby }}
2122

2223
services:
2324
mssql:
2425
image: mcr.microsoft.com/mssql/server:2022-latest
2526
env:
2627
ACCEPT_EULA: 'Y'
2728
SA_PASSWORD: Pa%%w0rd
29+
options: >-
30+
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -C -Q 'SELECT 1' || /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -Q 'SELECT 1'"
31+
--health-interval 10s
32+
--health-timeout 5s
33+
--health-retries 10
2834
ports:
2935
- 1433:1433
3036

.github/workflows/specs_mssql_rails81.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ jobs:
1818
env:
1919
DB_TEST: mssql
2020
RAILS_VERSION: 8.1
21+
RUBY_VERSION: ${{ matrix.ruby }}
2122

2223
services:
2324
mssql:
2425
image: mcr.microsoft.com/mssql/server:2022-latest
2526
env:
2627
ACCEPT_EULA: 'Y'
2728
SA_PASSWORD: Pa%%w0rd
29+
options: >-
30+
--health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -C -Q 'SELECT 1' || /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pa%%w0rd' -Q 'SELECT 1'"
31+
--health-interval 10s
32+
--health-timeout 5s
33+
--health-retries 10
2834
ports:
2935
- 1433:1433
3036

.github/workflows/specs_mysql_rails61.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,11 @@ jobs:
1818
env:
1919
DB_TEST: mysql
2020
RAILS_VERSION: 6.1
21-
22-
services:
23-
mysql:
24-
image: mysql
25-
env:
26-
MYSQL_USER: root
27-
MYSQL_PASSWORD: root
28-
# options: >-
29-
# --health-cmd="mysqladmin ping"
30-
# --health-interval 10s
31-
# --health-timeout 5s
32-
# --health-retries 5
33-
ports:
34-
- 3306:3306
21+
RUBY_VERSION: ${{ matrix.ruby }}
3522

3623
steps:
3724
- name: Install dependencies
38-
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin libvips-dev
25+
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
3926

4027
- name: Checkout repository
4128
uses: actions/checkout@v4

.github/workflows/specs_mysql_rails72.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,11 @@ jobs:
1818
env:
1919
DB_TEST: mysql
2020
RAILS_VERSION: 7.2
21-
22-
services:
23-
mysql:
24-
image: mysql
25-
env:
26-
MYSQL_USER: root
27-
MYSQL_PASSWORD: root
28-
# options: >-
29-
# --health-cmd="mysqladmin ping"
30-
# --health-interval 10s
31-
# --health-timeout 5s
32-
# --health-retries 5
33-
ports:
34-
- 3306:3306
21+
RUBY_VERSION: ${{ matrix.ruby }}
3522

3623
steps:
3724
- name: Install dependencies
38-
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin libvips-dev
25+
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
3926

4027
- name: Checkout repository
4128
uses: actions/checkout@v4

.github/workflows/specs_mysql_rails80.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,11 @@ jobs:
1818
env:
1919
DB_TEST: mysql
2020
RAILS_VERSION: 8.0
21-
22-
services:
23-
mysql:
24-
image: mysql
25-
env:
26-
MYSQL_USER: root
27-
MYSQL_PASSWORD: root
28-
# options: >-
29-
# --health-cmd="mysqladmin ping"
30-
# --health-interval 10s
31-
# --health-timeout 5s
32-
# --health-retries 5
33-
ports:
34-
- 3306:3306
21+
RUBY_VERSION: ${{ matrix.ruby }}
3522

3623
steps:
3724
- name: Install dependencies
38-
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin libvips-dev
25+
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
3926

4027
- name: Checkout repository
4128
uses: actions/checkout@v4

.github/workflows/specs_mysql_rails81.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,11 @@ jobs:
1818
env:
1919
DB_TEST: mysql
2020
RAILS_VERSION: 8.1
21-
22-
services:
23-
mysql:
24-
image: mysql
25-
env:
26-
MYSQL_USER: root
27-
MYSQL_PASSWORD: root
28-
# options: >-
29-
# --health-cmd="mysqladmin ping"
30-
# --health-interval 10s
31-
# --health-timeout 5s
32-
# --health-retries 5
33-
ports:
34-
- 3306:3306
21+
RUBY_VERSION: ${{ matrix.ruby }}
3522

3623
steps:
3724
- name: Install dependencies
38-
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin libvips-dev
25+
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
3926

4027
- name: Checkout repository
4128
uses: actions/checkout@v4

.github/workflows/specs_postgres_rails61.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
env:
1919
DB_TEST: postgres
2020
RAILS_VERSION: 6.1
21+
RUBY_VERSION: ${{ matrix.ruby }}
2122

2223
services:
2324
postgres:
@@ -35,7 +36,7 @@ jobs:
3536

3637
steps:
3738
- name: Install dependencies
38-
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin libvips-dev
39+
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
3940

4041
- name: Checkout repository
4142
uses: actions/checkout@v4

.github/workflows/specs_postgres_rails72.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
env:
1919
DB_TEST: postgres
2020
RAILS_VERSION: 7.2
21+
RUBY_VERSION: ${{ matrix.ruby }}
2122

2223
services:
2324
postgres:
@@ -35,7 +36,7 @@ jobs:
3536

3637
steps:
3738
- name: Install dependencies
38-
run: sudo apt-get update -qq && sudo apt-get install -yqq freetds-dev freetds-bin libvips-dev
39+
run: sudo apt-get update -qq && sudo apt-get install -yqq libvips-dev
3940

4041
- name: Checkout repository
4142
uses: actions/checkout@v4

0 commit comments

Comments
 (0)