|
4 | 4 | defaults:
|
5 | 5 | run:
|
6 | 6 | shell: bash
|
| 7 | + |
| 8 | +env: |
| 9 | + LOG_LEVEL: debug |
| 10 | + # Unfortunately, fluent-mysql-driver details leak through here |
| 11 | + MYSQL_DATABASE: 'test_database' |
| 12 | + MYSQL_DATABASE_A: 'test_database' |
| 13 | + MYSQL_DATABASE_B: 'test_database' |
| 14 | + MYSQL_USER: 'test_username' |
| 15 | + MYSQL_USERNAME: 'test_username' |
| 16 | + MYSQL_USERNAME_A: 'test_username' |
| 17 | + MYSQL_USERNAME_B: 'test_username' |
| 18 | + MYSQL_PASSWORD: 'test_password' |
| 19 | + MYSQL_PASSWORD_A: 'test_password' |
| 20 | + MYSQL_PASSWORD_B: 'test_password' |
| 21 | + MYSQL_HOSTNAME: 'mysql-a' |
| 22 | + MYSQL_HOSTNAME_A: 'mysql-a' |
| 23 | + MYSQL_HOSTNAME_B: 'mysql-b' |
| 24 | + |
7 | 25 | jobs:
|
8 |
| - linux-all: |
| 26 | + linux-unit: |
| 27 | + if: github.event.pull_request.draft == false |
9 | 28 | strategy:
|
10 | 29 | fail-fast: false
|
11 | 30 | matrix:
|
12 | 31 | dbimage:
|
13 | 32 | - mysql:5.7
|
14 | 33 | - mysql:8.0
|
15 |
| - - mariadb:10.3 |
16 |
| - - mariadb:10.7 |
| 34 | + - mariadb:10.4 |
| 35 | + - mariadb:10.10 |
17 | 36 | - percona:8.0
|
18 | 37 | swiftver:
|
19 |
| - - swift:5.5 |
20 |
| - - swift:5.6 |
21 |
| - - swiftlang/swift:nightly-main |
22 |
| - swiftos: |
23 |
| - - focal |
24 |
| - container: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }} |
| 38 | + - swift:5.6-focal |
| 39 | + - swift:5.7-jammy |
| 40 | + - swiftlang/swift:nightly-main-jammy |
| 41 | + container: ${{ matrix.swiftver }} |
| 42 | + runs-on: ubuntu-latest |
| 43 | + services: |
| 44 | + mysql-a: |
| 45 | + image: ${{ matrix.dbimage }} |
| 46 | + env: |
| 47 | + MYSQL_ALLOW_EMPTY_PASSWORD: "true" |
| 48 | + MYSQL_USER: test_username |
| 49 | + MYSQL_PASSWORD: test_password |
| 50 | + MYSQL_DATABASE: test_database |
| 51 | + steps: |
| 52 | + - name: Check out package |
| 53 | + uses: actions/checkout@v3 |
| 54 | + - name: Run tests |
| 55 | + run: swift test |
| 56 | + |
| 57 | + linux-dependents: |
| 58 | + if: github.event.pull_request.draft == false |
| 59 | + strategy: |
| 60 | + fail-fast: false |
| 61 | + matrix: |
| 62 | + dbimage: |
| 63 | + - mysql:5.7 |
| 64 | + - mysql:8.0 |
| 65 | + - mariadb:10.4 |
| 66 | + - mariadb:10.10 |
| 67 | + - percona:8.0 |
| 68 | + swiftver: |
| 69 | + - swift:5.6-focal |
| 70 | + - swift:5.7-jammy |
| 71 | + - swiftlang/swift:nightly-main-jammy |
| 72 | + container: ${{ matrix.swiftver }} |
25 | 73 | runs-on: ubuntu-latest
|
26 |
| - env: |
27 |
| - LOG_LEVEL: debug |
28 |
| - # Unfortunately, fluent-mysql-driver details leak through here |
29 |
| - MYSQL_DATABASE: 'test_database' |
30 |
| - MYSQL_DATABASE_A: 'test_database' |
31 |
| - MYSQL_DATABASE_B: 'test_database' |
32 |
| - MYSQL_USER: 'test_username' |
33 |
| - MYSQL_USERNAME: 'test_username' |
34 |
| - MYSQL_USERNAME_A: 'test_username' |
35 |
| - MYSQL_USERNAME_B: 'test_username' |
36 |
| - MYSQL_PASSWORD: 'test_password' |
37 |
| - MYSQL_PASSWORD_A: 'test_password' |
38 |
| - MYSQL_PASSWORD_B: 'test_password' |
39 |
| - MYSQL_HOSTNAME: 'mysql-a' |
40 |
| - MYSQL_HOSTNAME_A: 'mysql-a' |
41 |
| - MYSQL_HOSTNAME_B: 'mysql-b' |
42 | 74 | services:
|
43 | 75 | mysql-a:
|
44 | 76 | image: ${{ matrix.dbimage }}
|
|
58 | 90 | - name: Check out package
|
59 | 91 | uses: actions/checkout@v3
|
60 | 92 | with: { path: 'mysql-nio' }
|
61 |
| - - name: Run tests |
62 |
| - run: swift test --package-path mysql-nio |
63 | 93 | - name: Check out mysql-kit dependent
|
64 | 94 | uses: actions/checkout@v3
|
65 | 95 | with: { repository: 'vapor/mysql-kit', path: 'mysql-kit' }
|
|
76 | 106 | run: swift test --package-path fluent-mysql-driver
|
77 | 107 |
|
78 | 108 | macos-all:
|
| 109 | + if: github.event.pull_request.draft == false |
79 | 110 | strategy:
|
80 | 111 | fail-fast: false
|
81 | 112 | matrix:
|
|
0 commit comments