Make curl verbose to debug connection errors #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: TCC GitHub Action | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| defaults: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client with defaults | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| without-wait-with-additional-args: | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client with registry without wait | |
| uses: ./ | |
| with: | |
| version: next | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| wait: false | |
| args: "--private-registry-url=http://localhost:5000 '--private-registry-allowed-image-name-globs=*,*/*'" | |
| env: | |
| TC_CLOUD_LOGS_VERBOSE: true | |
| with-custom-binary-name: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client with custom binary name | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| wait: false | |
| env: | |
| TCC_BINARY_NAME: tcc | |
| with-terminate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| wait: true | |
| version: next | |
| logfile: testcontainers-client-termination.log | |
| - name: Terminate active TCC sessions | |
| uses: ./ | |
| with: | |
| action: terminate | |
| - name: Upload output file | |
| uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: output-log-file | |
| path: testcontainers-client-termination.log | |
| retention-days: 5 | |
| with-logfile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client with logfile | |
| uses: ./ | |
| with: | |
| version: next | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| wait: false | |
| logfile: testcontainers-client.log | |
| - name: Upload output file | |
| uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: output-log-file | |
| path: testcontainers-client.log | |
| retention-days: 30 | |
| with-project-keys: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client with project-key and project-url | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| project-key: testcontainers-cloud-setup-action-custom | |
| project-url: https://testcontainers.cloud | |
| with-project-keys-as-env-vars: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Setup Testcontainers Cloud Client with project-key and project-url | |
| uses: ./ | |
| with: | |
| token: ${{ secrets.TC_CLOUD_TOKEN }} | |
| env: | |
| TCC_PROJECT_KEY: testcontainers-cloud-setup-action-custom-env-var | |
| TCC_PROJECT_URL: https://testcontainers.cloud |