|
1 | | -name: Integration Tests |
2 | | - |
3 | | -on: |
4 | | - pull_request: |
5 | | - branches: [ master ] |
6 | | - workflow_dispatch: |
7 | | - |
8 | | -jobs: |
9 | | - microsoft_sql: |
10 | | - if: github.event.pull_request.draft == false |
11 | | - runs-on: ubuntu-20.04 |
12 | | - env: |
13 | | - RunDockerTests: true |
14 | | - steps: |
15 | | - - uses: actions/checkout@v4 |
16 | | - - name: Setup .NET |
17 | | - uses: actions/setup-dotnet@v4 |
18 | | - with: |
19 | | - dotnet-version: 8.0.x |
20 | | - - name: Setup Node.js |
21 | | - uses: actions/setup-node@v4 |
22 | | - with: |
23 | | - node-version: 20 |
24 | | - - name: Restore dependencies |
25 | | - run: dotnet restore |
26 | | - - name: Build |
27 | | - run: dotnet build SQLSchemaCompare.Test --configuration Release |
28 | | - - name: docker pull images |
29 | | - shell: bash |
30 | | - run: | |
31 | | - docker pull mcr.microsoft.com/mssql/server:2017-latest |
32 | | - docker pull mcr.microsoft.com/mssql/server:2019-latest |
| 1 | +name: Integration Tests |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [ master ] |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + microsoft_sql: |
| 10 | + if: github.event.pull_request.draft == false |
| 11 | + runs-on: ubuntu-latest |
| 12 | + env: |
| 13 | + RunDockerTests: true |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + - name: Setup .NET |
| 17 | + uses: actions/setup-dotnet@v4 |
| 18 | + with: |
| 19 | + dotnet-version: 8.0.x |
| 20 | + - name: Setup Node.js |
| 21 | + uses: actions/setup-node@v4 |
| 22 | + with: |
| 23 | + node-version: 20 |
| 24 | + - name: Restore dependencies |
| 25 | + run: dotnet restore |
| 26 | + - name: Build |
| 27 | + run: dotnet build SQLSchemaCompare.Test --configuration Release |
| 28 | + - name: docker pull images |
| 29 | + shell: bash |
| 30 | + run: | |
| 31 | + docker pull mcr.microsoft.com/mssql/server:2017-latest |
| 32 | + docker pull mcr.microsoft.com/mssql/server:2019-latest |
33 | 33 | docker pull mcr.microsoft.com/mssql/server:2022-latest |
34 | | - docker pull mcr.microsoft.com/mssql/server:2025-latest |
35 | | - - name: docker start containers |
36 | | - shell: bash |
37 | | - run: | |
38 | | - docker run --rm --name mssql-linux-2017 -p 28001:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2017-latest |
39 | | - docker run --rm --name mssql-linux-2019 -p 28002:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2019-latest |
| 34 | + docker pull mcr.microsoft.com/mssql/server:2025-latest |
| 35 | + - name: docker start containers |
| 36 | + shell: bash |
| 37 | + run: | |
| 38 | + docker run --rm --name mssql-linux-2017 -p 28001:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2017-latest |
| 39 | + docker run --rm --name mssql-linux-2019 -p 28002:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2019-latest |
40 | 40 | docker run --rm --name mssql-linux-2022 -p 28003:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2022-latest |
41 | | - docker run --rm --name mssql-linux-2025 -p 28004:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2025-latest |
42 | | - sleep 60s |
43 | | - - name: Test |
44 | | - run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=MicrosoftSQL" |
45 | | - - name: Publish Test Results |
46 | | - uses: EnricoMi/publish-unit-test-result-action@v2 |
47 | | - if: always() |
48 | | - with: |
49 | | - check_name: "microsoft_sql Test Results" |
50 | | - files: SQLSchemaCompare.Test/TestResults/*.trx |
51 | | - |
52 | | - my_sql: |
53 | | - if: github.event.pull_request.draft == false |
54 | | - runs-on: ubuntu-latest |
55 | | - env: |
56 | | - RunDockerTests: true |
57 | | - steps: |
58 | | - - uses: actions/checkout@v4 |
59 | | - - name: Setup .NET |
60 | | - uses: actions/setup-dotnet@v4 |
61 | | - with: |
62 | | - dotnet-version: 8.0.x |
63 | | - - name: Setup Node.js |
64 | | - uses: actions/setup-node@v4 |
65 | | - with: |
66 | | - node-version: 20 |
67 | | - - name: Restore dependencies |
68 | | - run: dotnet restore |
69 | | - - name: Build |
70 | | - run: dotnet build SQLSchemaCompare.Test --configuration Release |
71 | | - - name: docker pull images |
72 | | - shell: bash |
73 | | - run: | |
74 | | - docker pull mysql:8.0 |
| 41 | + docker run --rm --name mssql-linux-2025 -p 28004:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD=Test1234! -d mcr.microsoft.com/mssql/server:2025-latest |
| 42 | + sleep 60s |
| 43 | + - name: Test |
| 44 | + run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=MicrosoftSQL" |
| 45 | + - name: Publish Test Results |
| 46 | + uses: EnricoMi/publish-unit-test-result-action@v2 |
| 47 | + if: always() |
| 48 | + with: |
| 49 | + check_name: "microsoft_sql Test Results" |
| 50 | + files: SQLSchemaCompare.Test/TestResults/*.trx |
| 51 | + |
| 52 | + my_sql: |
| 53 | + if: github.event.pull_request.draft == false |
| 54 | + runs-on: ubuntu-latest |
| 55 | + env: |
| 56 | + RunDockerTests: true |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v4 |
| 59 | + - name: Setup .NET |
| 60 | + uses: actions/setup-dotnet@v4 |
| 61 | + with: |
| 62 | + dotnet-version: 8.0.x |
| 63 | + - name: Setup Node.js |
| 64 | + uses: actions/setup-node@v4 |
| 65 | + with: |
| 66 | + node-version: 20 |
| 67 | + - name: Restore dependencies |
| 68 | + run: dotnet restore |
| 69 | + - name: Build |
| 70 | + run: dotnet build SQLSchemaCompare.Test --configuration Release |
| 71 | + - name: docker pull images |
| 72 | + shell: bash |
| 73 | + run: | |
| 74 | + docker pull mysql:8.0 |
75 | 75 | docker pull mysql:8.4 |
76 | | - docker pull mysql:9.4 |
77 | | - - name: docker start containers |
78 | | - shell: bash |
79 | | - run: | |
80 | | - docker run --rm --name mysql-8.0 -p 27004:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mysql:8.0 |
| 76 | + docker pull mysql:9.4 |
| 77 | + - name: docker start containers |
| 78 | + shell: bash |
| 79 | + run: | |
| 80 | + docker run --rm --name mysql-8.0 -p 27004:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mysql:8.0 |
81 | 81 | docker run --rm --name mysql-8.4 -p 27008:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mysql:8.4 |
82 | | - docker run --rm --name mysql-9.4 -p 27013:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mysql:9.4 |
83 | | - sleep 60s |
84 | | - - name: Test |
85 | | - run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=MySQL" |
86 | | - - name: Publish Test Results |
87 | | - uses: EnricoMi/publish-unit-test-result-action@v2 |
88 | | - if: always() |
89 | | - with: |
90 | | - check_name: "my_sql Test Results" |
91 | | - files: SQLSchemaCompare.Test/TestResults/*.trx |
92 | | - |
93 | | - postgre_sql: |
94 | | - if: github.event.pull_request.draft == false |
95 | | - runs-on: ubuntu-latest |
96 | | - env: |
97 | | - RunDockerTests: true |
98 | | - steps: |
99 | | - - uses: actions/checkout@v4 |
100 | | - - name: Setup .NET |
101 | | - uses: actions/setup-dotnet@v4 |
102 | | - with: |
103 | | - dotnet-version: 8.0.x |
104 | | - - name: Setup Node.js |
105 | | - uses: actions/setup-node@v4 |
106 | | - with: |
107 | | - node-version: 20 |
108 | | - - name: Restore dependencies |
109 | | - run: dotnet restore |
110 | | - - name: Build |
111 | | - run: dotnet build SQLSchemaCompare.Test --configuration Release |
112 | | - - name: docker pull images |
113 | | - shell: bash |
114 | | - run: | |
115 | | - docker pull postgres:13-alpine |
116 | | - docker pull postgres:14-alpine |
117 | | - docker pull postgres:15-alpine |
| 82 | + docker run --rm --name mysql-9.4 -p 27013:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mysql:9.4 |
| 83 | + sleep 60s |
| 84 | + - name: Test |
| 85 | + run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=MySQL" |
| 86 | + - name: Publish Test Results |
| 87 | + uses: EnricoMi/publish-unit-test-result-action@v2 |
| 88 | + if: always() |
| 89 | + with: |
| 90 | + check_name: "my_sql Test Results" |
| 91 | + files: SQLSchemaCompare.Test/TestResults/*.trx |
| 92 | + |
| 93 | + postgre_sql: |
| 94 | + if: github.event.pull_request.draft == false |
| 95 | + runs-on: ubuntu-latest |
| 96 | + env: |
| 97 | + RunDockerTests: true |
| 98 | + steps: |
| 99 | + - uses: actions/checkout@v4 |
| 100 | + - name: Setup .NET |
| 101 | + uses: actions/setup-dotnet@v4 |
| 102 | + with: |
| 103 | + dotnet-version: 8.0.x |
| 104 | + - name: Setup Node.js |
| 105 | + uses: actions/setup-node@v4 |
| 106 | + with: |
| 107 | + node-version: 20 |
| 108 | + - name: Restore dependencies |
| 109 | + run: dotnet restore |
| 110 | + - name: Build |
| 111 | + run: dotnet build SQLSchemaCompare.Test --configuration Release |
| 112 | + - name: docker pull images |
| 113 | + shell: bash |
| 114 | + run: | |
| 115 | + docker pull postgres:13-alpine |
| 116 | + docker pull postgres:14-alpine |
| 117 | + docker pull postgres:15-alpine |
118 | 118 | docker pull postgres:16-alpine |
119 | | - docker pull postgres:17-alpine |
120 | | - - name: docker start containers |
121 | | - shell: bash |
122 | | - run: | |
123 | | - docker run --rm --name postgres-13 -p 26008:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:13-alpine |
124 | | - docker run --rm --name postgres-14 -p 26009:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:14-alpine |
125 | | - docker run --rm --name postgres-15 -p 26010:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:15-alpine |
| 119 | + docker pull postgres:17-alpine |
| 120 | + - name: docker start containers |
| 121 | + shell: bash |
| 122 | + run: | |
| 123 | + docker run --rm --name postgres-13 -p 26008:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:13-alpine |
| 124 | + docker run --rm --name postgres-14 -p 26009:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:14-alpine |
| 125 | + docker run --rm --name postgres-15 -p 26010:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:15-alpine |
126 | 126 | docker run --rm --name postgres-16 -p 26011:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:16-alpine |
127 | | - docker run --rm --name postgres-17 -p 26012:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:17-alpine |
128 | | - sleep 60s |
129 | | - - name: Test |
130 | | - run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=PostgreSQL" |
131 | | - - name: Publish Test Results |
132 | | - uses: EnricoMi/publish-unit-test-result-action@v2 |
133 | | - if: always() |
134 | | - with: |
135 | | - check_name: "postgre_sql Test Results" |
136 | | - files: SQLSchemaCompare.Test/TestResults/*.trx |
137 | | - |
138 | | - maria_db: |
139 | | - if: github.event.pull_request.draft == false |
140 | | - runs-on: ubuntu-latest |
141 | | - env: |
142 | | - RunDockerTests: true |
143 | | - steps: |
144 | | - - uses: actions/checkout@v4 |
145 | | - - name: Setup .NET |
146 | | - uses: actions/setup-dotnet@v4 |
147 | | - with: |
148 | | - dotnet-version: 8.0.x |
149 | | - - name: Setup Node.js |
150 | | - uses: actions/setup-node@v4 |
151 | | - with: |
152 | | - node-version: 20 |
153 | | - - name: Restore dependencies |
154 | | - run: dotnet restore |
155 | | - - name: Build |
156 | | - run: dotnet build SQLSchemaCompare.Test --configuration Release |
157 | | - - name: docker pull images |
158 | | - shell: bash |
159 | | - run: | |
160 | | - docker pull mariadb:10.6 |
161 | | - docker pull mariadb:10.11 |
| 127 | + docker run --rm --name postgres-17 -p 26012:5432 -e POSTGRES_PASSWORD=test1234 -d postgres:17-alpine |
| 128 | + sleep 60s |
| 129 | + - name: Test |
| 130 | + run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=PostgreSQL" |
| 131 | + - name: Publish Test Results |
| 132 | + uses: EnricoMi/publish-unit-test-result-action@v2 |
| 133 | + if: always() |
| 134 | + with: |
| 135 | + check_name: "postgre_sql Test Results" |
| 136 | + files: SQLSchemaCompare.Test/TestResults/*.trx |
| 137 | + |
| 138 | + maria_db: |
| 139 | + if: github.event.pull_request.draft == false |
| 140 | + runs-on: ubuntu-latest |
| 141 | + env: |
| 142 | + RunDockerTests: true |
| 143 | + steps: |
| 144 | + - uses: actions/checkout@v4 |
| 145 | + - name: Setup .NET |
| 146 | + uses: actions/setup-dotnet@v4 |
| 147 | + with: |
| 148 | + dotnet-version: 8.0.x |
| 149 | + - name: Setup Node.js |
| 150 | + uses: actions/setup-node@v4 |
| 151 | + with: |
| 152 | + node-version: 20 |
| 153 | + - name: Restore dependencies |
| 154 | + run: dotnet restore |
| 155 | + - name: Build |
| 156 | + run: dotnet build SQLSchemaCompare.Test --configuration Release |
| 157 | + - name: docker pull images |
| 158 | + shell: bash |
| 159 | + run: | |
| 160 | + docker pull mariadb:10.6 |
| 161 | + docker pull mariadb:10.11 |
162 | 162 | docker pull mariadb:11.4 |
163 | | - docker pull mariadb:11.8 |
164 | | - - name: docker start containers |
165 | | - shell: bash |
166 | | - run: | |
167 | | - docker run --rm --name mariadb-10.6 -p 29008:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:10.6 |
168 | | - docker run --rm --name mariadb-10.11 -p 29013:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:10.11 |
| 163 | + docker pull mariadb:11.8 |
| 164 | + - name: docker start containers |
| 165 | + shell: bash |
| 166 | + run: | |
| 167 | + docker run --rm --name mariadb-10.6 -p 29008:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:10.6 |
| 168 | + docker run --rm --name mariadb-10.11 -p 29013:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:10.11 |
169 | 169 | docker run --rm --name mariadb-11.4 -p 29018:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:11.4 |
170 | | - docker run --rm --name mariadb-11.8 -p 29022:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:11.8 |
171 | | - sleep 60s |
172 | | - - name: Test |
173 | | - run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=MariaDB" |
174 | | - - name: Publish Test Results |
175 | | - uses: EnricoMi/publish-unit-test-result-action@v2 |
176 | | - if: always() |
177 | | - with: |
178 | | - check_name: "maria_db Test Results" |
179 | | - files: SQLSchemaCompare.Test/TestResults/*.trx |
| 170 | +
|
| 171 | + docker run --rm --name mariadb-11.8 -p 29022:3306 -e MYSQL_USER=admin -e MYSQL_PASSWORD=test1234 -e MYSQL_ROOT_PASSWORD=test1234 -d mariadb:11.8 |
| 172 | + sleep 60s |
| 173 | + - name: Test |
| 174 | + run: dotnet test SQLSchemaCompare.Test --no-build --configuration Release --logger trx --filter "Category=IntegrationTest&Category=MariaDB" |
| 175 | + - name: Publish Test Results |
| 176 | + uses: EnricoMi/publish-unit-test-result-action@v2 |
| 177 | + if: always() |
| 178 | + with: |
| 179 | + check_name: "maria_db Test Results" |
| 180 | + files: SQLSchemaCompare.Test/TestResults/*.trx |
0 commit comments