|
40 | 40 | --health-retries 10 |
41 | 41 | ports: |
42 | 42 | - 9200:9200 |
43 | | - localstack: |
44 | | - image: localstack/localstack:latest |
45 | | - env: |
46 | | - LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }} |
47 | | - SERVICES: s3 |
48 | | - AWS_ACCESS_KEY_ID: test |
49 | | - AWS_SECRET_ACCESS_KEY: test |
50 | | - ports: |
51 | | - - 4566:4566 |
52 | | - - 4571:4571 |
53 | 43 | strategy: |
54 | 44 | fail-fast: false |
55 | 45 | matrix: |
|
81 | 71 | sleep 2 |
82 | 72 | done |
83 | 73 |
|
| 74 | + - name: "Start MinIO and create bucket" |
| 75 | + run: | |
| 76 | + docker run -d --name minio -p 9000:9000 \ |
| 77 | + -e MINIO_ROOT_USER=minioadmin \ |
| 78 | + -e MINIO_ROOT_PASSWORD=minioadmin \ |
| 79 | + quay.io/minio/minio:latest server /data |
| 80 | + timeout 30 sh -c 'until curl -fs http://localhost:9000/minio/health/live > /dev/null; do sleep 1; done' |
| 81 | + docker run --rm --network=host --entrypoint sh quay.io/minio/mc:latest -c " |
| 82 | + mc alias set local http://localhost:9000 minioadmin minioadmin && |
| 83 | + mc mb local/flowphpbucket01 --ignore-existing |
| 84 | + " |
| 85 | +
|
84 | 86 | - name: "Setup PHP Environment" |
85 | 87 | uses: "./.github/actions/setup-php-env" |
86 | 88 | with: |
@@ -116,43 +118,25 @@ jobs: |
116 | 118 | env: |
117 | 119 | AZURITE_ACCOUNTS: flowphpaccount01:flowphpkey01 |
118 | 120 |
|
119 | | - - name: "Test - Libraries" |
120 | | - run: "composer test:libraries" |
121 | | - env: |
122 | | - FLOW_PARQUET_TESTS_DEBUG: "0" |
123 | | - PGSQL_DATABASE_URL: pgsql://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports[5432] }}/postgres?serverVersion=11&charset=utf8 |
124 | | - MYSQL_DATABASE_URL: mysql://mysql:mysql@127.0.0.1:${{ job.services.mysql.ports[3306] }}/mysql |
125 | | - |
126 | | - - name: "Test - ETL Core" |
127 | | - run: "composer test:core" |
128 | | - |
129 | | - - name: "Test - CLI" |
130 | | - run: "composer test:cli" |
131 | | - env: |
132 | | - PGSQL_DATABASE_URL: pgsql://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports[5432] }}/postgres?serverVersion=11&charset=utf8 |
133 | | - |
134 | | - - name: "Test - Adapters" |
135 | | - run: "composer test:adapters" |
| 121 | + - name: "Test" |
| 122 | + timeout-minutes: 10 |
| 123 | + run: "composer test -- --coverage-clover=./var/phpunit/coverage/clover/coverage.xml --log-junit ./var/phpunit/logs/junit.xml" |
136 | 124 | env: |
137 | 125 | PGSQL_DATABASE_URL: pgsql://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports[5432] }}/postgres?serverVersion=11&charset=utf8 |
138 | 126 | MYSQL_DATABASE_URL: mysql://mysql:mysql@127.0.0.1:${{ job.services.mysql.ports[3306] }}/mysql |
139 | 127 | SQLITE_DATABASE_URL: "sqlite:///:memory:" |
140 | | - |
141 | | - - name: "Test - Bridges" |
142 | | - run: "composer test:bridges" |
143 | | - env: |
144 | | - PGSQL_DATABASE_URL: pgsql://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports[5432] }}/postgres?serverVersion=11&charset=utf8 |
145 | 128 | AZURITE_HOST: "localhost" |
146 | 129 | AZURITE_BLOB_PORT: "10000" |
147 | 130 | AZURITE_ACCOUNT_NAME: "flowphpaccount01" |
148 | 131 | AZURITE_ACCOUNT_KEY: "flowphpkey01" |
149 | | - S3_ENDPOINT: "http://localhost:${{ job.services.localstack.ports[4566] }}" |
| 132 | + S3_ENDPOINT: "http://localhost:9000" |
150 | 133 | S3_REGION: "us-east-1" |
151 | | - S3_ACCESS_KEY_ID: "test" |
152 | | - S3_SECRET_ACCESS_KEY: "test" |
| 134 | + S3_ACCESS_KEY_ID: "minioadmin" |
| 135 | + S3_SECRET_ACCESS_KEY: "minioadmin" |
153 | 136 | OTEL_RECEIVER_HTTP_ENDPOINT: "http://localhost:4318" |
154 | 137 | OTEL_RECEIVER_GRPC_ENDPOINT: "localhost:4317" |
155 | 138 | OTEL_COLLECTOR_METRICS_ENDPOINT: "http://localhost:8888/metrics" |
| 139 | + FLOW_PARQUET_TESTS_DEBUG: "0" |
156 | 140 |
|
157 | 141 | - name: Upload to Codecov |
158 | 142 | uses: ./.github/actions/codecov-report |
|
0 commit comments