99 dbimage :
1010 - postgres:14
1111 - postgres:13
12- - postgres:12
1312 - postgres:11
1413 dbauth :
1514 - trust
@@ -18,69 +17,72 @@ jobs:
1817 swiftver :
1918 - swift:5.2
2019 - swift:5.5
20+ - swift:5.6
2121 - swiftlang/swift:nightly-main
2222 swiftos :
2323 - focal
24+ include :
25+ - swiftver : swift:5.2
26+ test_flag : --enable-test-discovery
2427 container : ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
2528 runs-on : ubuntu-latest
2629 env :
2730 LOG_LEVEL : debug
28- POSTGRES_DB_A : ' vapor_database '
29- POSTGRES_DB_B : ' vapor_database '
30- POSTGRES_USER_A : ' vapor_username '
31- POSTGRES_USER_B : ' vapor_username '
32- POSTGRES_PASSWORD_A : ' vapor_password '
33- POSTGRES_PASSWORD_B : ' vapor_password '
31+ POSTGRES_DB_A : ' test_database '
32+ POSTGRES_DB_B : ' test_database '
33+ POSTGRES_USER_A : ' test_username '
34+ POSTGRES_USER_B : ' test_username '
35+ POSTGRES_PASSWORD_A : ' test_password '
36+ POSTGRES_PASSWORD_B : ' test_password '
3437 POSTGRES_HOSTNAME_A : ' psql-a'
3538 POSTGRES_HOSTNAME_B : ' psql-b'
3639 POSTGRES_HOST_AUTH_METHOD : ${{ matrix.dbauth }}
3740 services :
3841 psql-a :
3942 image : ${{ matrix.dbimage }}
4043 env :
41- POSTGRES_USER : ' vapor_username '
42- POSTGRES_DB : ' vapor_database '
43- POSTGRES_PASSWORD : ' vapor_password '
44+ POSTGRES_USER : ' test_username '
45+ POSTGRES_DB : ' test_database '
46+ POSTGRES_PASSWORD : ' test_password '
4447 POSTGRES_HOST_AUTH_METHOD : ${{ matrix.dbauth }}
4548 POSTGRES_INITDB_ARGS : --auth-host=${{ matrix.dbauth }}
4649 psql-b :
4750 image : ${{ matrix.dbimage }}
4851 env :
49- POSTGRES_USER : ' vapor_username '
50- POSTGRES_DB : ' vapor_database '
51- POSTGRES_PASSWORD : ' vapor_password '
52+ POSTGRES_USER : ' test_username '
53+ POSTGRES_DB : ' test_database '
54+ POSTGRES_PASSWORD : ' test_password '
5255 POSTGRES_HOST_AUTH_METHOD : ${{ matrix.dbauth }}
5356 POSTGRES_INITDB_ARGS : --auth-host=${{ matrix.dbauth }}
5457 steps :
5558 - name : Check out package
56- uses : actions/checkout@v2
59+ uses : actions/checkout@v3
5760 - name : Run all tests with Thread Sanitizer
58- run : swift test --enable-test-discovery --sanitize=thread
61+ run : swift test ${{ matrix.test_flag }} --sanitize=thread
5962
6063 macos-all :
6164 strategy :
6265 fail-fast : false
6366 matrix :
67+ # Only test latest version and one auth method on macOS
6468 dbimage :
65- # Only test the lastest version on macOS, let Linux do the rest
6669 - postgresql@14
6770 dbauth :
68- # Only test one auth method on macOS, Linux tests will cover the others
6971 - scram-sha-256
7072 xcode :
7173 - latest-stable
72- - latest
74+ # - latest
7375 runs-on : macos-11
7476 env :
7577 LOG_LEVEL : debug
7678 POSTGRES_HOSTNAME_A : 127.0.0.1
7779 POSTGRES_HOSTNAME_B : 127.0.0.1
78- POSTGRES_USER_A : ' vapor_username '
79- POSTGRES_USER_B : ' vapor_username '
80- POSTGRES_PASSWORD_A : ' vapor_password '
81- POSTGRES_PASSWORD_B : ' vapor_password '
82- POSTGRES_DB_A : ' vapor_database_a '
83- POSTGRES_DB_B : ' vapor_database_b '
80+ POSTGRES_USER_A : ' test_username '
81+ POSTGRES_USER_B : ' test_username '
82+ POSTGRES_PASSWORD_A : ' test_password '
83+ POSTGRES_PASSWORD_B : ' test_password '
84+ POSTGRES_DB_A : ' test_database_a '
85+ POSTGRES_DB_B : ' test_database_b '
8486 steps :
8587 - name : Select latest available Xcode
8688 uses : maxim-lobanov/setup-xcode@v1
@@ -100,7 +102,7 @@ jobs:
100102 psql $POSTGRES_DB_B <<<"ALTER SCHEMA public OWNER TO $POSTGRES_USER_B;"
101103 timeout-minutes : 2
102104 - name : Checkout code
103- uses : actions/checkout@v2
105+ uses : actions/checkout@v3
104106 - name : Run all tests with Thread Sanitizer
105107 run : |
106108 swift test --sanitize=thread -Xlinker -rpath \
0 commit comments