|
1 | | -name: Build and test |
2 | | -on: [push, pull_request] |
| 1 | +name: Check |
| 2 | +on: [ pull_request, push ] |
3 | 3 | jobs: |
4 | 4 | mysql5_7: |
| 5 | + runs-on: ubuntu-latest |
| 6 | + # push: always run. |
| 7 | + # pull_request: run only when the PR is submitted from a forked repository, not within this repository. |
| 8 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
5 | 9 | strategy: |
6 | 10 | fail-fast: false |
7 | | - runs-on: ubuntu-latest |
8 | 11 | services: |
9 | 12 | mysql: |
10 | 13 | image: mysql:5.7 |
|
36 | 39 | name: mysql5_7 |
37 | 40 | path: embulk-input-mysql/build/reports/tests/test |
38 | 41 | mysql8_3: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + # push: always run. |
| 44 | + # pull_request: run only when the PR is submitted from a forked repository, not within this repository. |
| 45 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
39 | 46 | strategy: |
40 | 47 | fail-fast: false |
41 | | - runs-on: ubuntu-latest |
42 | 48 | services: |
43 | 49 | mysql: |
44 | 50 | # Due to MySQL 8.4 disabled mysql_native_password by default, |
@@ -96,6 +102,11 @@ jobs: |
96 | 102 | path: embulk-input-mysql/build/reports/tests/test |
97 | 103 | postgresql9_4: |
98 | 104 | runs-on: ubuntu-latest |
| 105 | + # push: always run. |
| 106 | + # pull_request: run only when the PR is submitted from a forked repository, not within this repository. |
| 107 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 108 | + strategy: |
| 109 | + fail-fast: false |
99 | 110 | services: |
100 | 111 | postgres: |
101 | 112 | image: postgres:9.4 |
@@ -132,6 +143,11 @@ jobs: |
132 | 143 | # Use PostgreSQL 13 at this time. |
133 | 144 | postgresql13: |
134 | 145 | runs-on: ubuntu-latest |
| 146 | + # push: always run. |
| 147 | + # pull_request: run only when the PR is submitted from a forked repository, not within this repository. |
| 148 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 149 | + strategy: |
| 150 | + fail-fast: false |
135 | 151 | services: |
136 | 152 | postgres: |
137 | 153 | image: postgres:13 |
@@ -170,6 +186,11 @@ jobs: |
170 | 186 | path: embulk-input-postgresql/build/reports/tests/test |
171 | 187 | redshift: |
172 | 188 | runs-on: ubuntu-latest |
| 189 | + # push: always run. |
| 190 | + # pull_request: run only when the PR is submitted from a forked repository, not within this repository. |
| 191 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 192 | + strategy: |
| 193 | + fail-fast: false |
173 | 194 | # Testing embulk-input-redshift emulated with PostgreSQL. |
174 | 195 | services: |
175 | 196 | postgres: |
@@ -205,6 +226,11 @@ jobs: |
205 | 226 | path: embulk-input-redshift/build/reports/tests/test |
206 | 227 | sqlserver: # https://hub.docker.com/_/microsoft-mssql-server |
207 | 228 | runs-on: ubuntu-latest |
| 229 | + # push: always run. |
| 230 | + # pull_request: run only when the PR is submitted from a forked repository, not within this repository. |
| 231 | + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository |
| 232 | + strategy: |
| 233 | + fail-fast: false |
208 | 234 | services: |
209 | 235 | sqlserver: |
210 | 236 | # To run locallly: |
|
0 commit comments