|
81 | 81 | run: | |
82 | 82 | tox -e stack.test.integration |
83 | 83 |
|
| 84 | + stack-integration-tests-tls: |
| 85 | + strategy: |
| 86 | + max-parallel: 3 |
| 87 | + matrix: |
| 88 | + os: [ubuntu-latest] |
| 89 | + python-version: [3.9] |
| 90 | + |
| 91 | + runs-on: ${{matrix.os}} |
| 92 | + |
| 93 | + steps: |
| 94 | + - uses: actions/checkout@v2 |
| 95 | + |
| 96 | + - name: Check for file changes |
| 97 | + uses: dorny/paths-filter@v2 |
| 98 | + id: changes |
| 99 | + with: |
| 100 | + token: ${{ github.token }} |
| 101 | + filters: .github/file-filters.yml |
| 102 | + |
| 103 | + - name: Set up Python ${{ matrix.python-version }} |
| 104 | + uses: actions/setup-python@v2 |
| 105 | + if: steps.changes.outputs.stack == 'true' |
| 106 | + with: |
| 107 | + python-version: ${{ matrix.python-version }} |
| 108 | + |
| 109 | + - name: Get pip cache dir |
| 110 | + if: steps.changes.outputs.stack == 'true' |
| 111 | + id: pip-cache |
| 112 | + run: | |
| 113 | + echo "::set-output name=dir::$(pip cache dir)" |
| 114 | +
|
| 115 | + - name: pip cache |
| 116 | + uses: actions/cache@v2 |
| 117 | + if: steps.changes.outputs.stack == 'true' |
| 118 | + with: |
| 119 | + path: ${{ steps.pip-cache.outputs.dir }} |
| 120 | + key: ${{ runner.os }}-pip-py${{ matrix.python-version }} |
| 121 | + restore-keys: | |
| 122 | + ${{ runner.os }}-pip-py${{ matrix.python-version }} |
| 123 | +
|
| 124 | + - name: Upgrade pip |
| 125 | + if: steps.changes.outputs.stack == 'true' |
| 126 | + run: | |
| 127 | + pip install --upgrade --user pip |
| 128 | +
|
| 129 | + - name: Install tox |
| 130 | + if: steps.changes.outputs.stack == 'true' |
| 131 | + run: | |
| 132 | + pip install tox --upgrade |
| 133 | +
|
| 134 | + - name: Install Docker Compose |
| 135 | + if: runner.os == 'Linux' |
| 136 | + shell: bash |
| 137 | + run: | |
| 138 | + mkdir -p ~/.docker/cli-plugins |
| 139 | + DOCKER_COMPOSE_VERSION=v2.1.1 |
| 140 | + curl -sSL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose |
| 141 | + chmod +x ~/.docker/cli-plugins/docker-compose |
| 142 | +
|
| 143 | + - name: Install mkcert |
| 144 | + if: runner.os == 'Linux' |
| 145 | + shell: bash |
| 146 | + run: | |
| 147 | + sudo apt install libnss3-tools -y |
| 148 | + MKCERT_VERSION=v1.4.3 |
| 149 | + curl -sSL https://github.com/FiloSottile/mkcert/releases/download/${MKCERT_VERSION}/mkcert-${MKCERT_VERSION}-linux-amd64 -o /usr/local/bin/mkcert |
| 150 | + chmod +x /usr/local/bin/mkcert |
| 151 | + which mkcert |
| 152 | +
|
| 153 | + - name: Run integration tests |
| 154 | + if: steps.changes.outputs.stack == 'true' |
| 155 | + timeout-minutes: 30 |
| 156 | + run: | |
| 157 | + tox -e stack.test.integration.tls |
| 158 | +
|
84 | 159 | stack-integration-tests-windows: |
85 | 160 | strategy: |
86 | 161 | max-parallel: 3 |
@@ -155,7 +230,7 @@ jobs: |
155 | 230 | pip install -e packages/hagrid |
156 | 231 | set HAGRID_ART=false |
157 | 232 | hagrid launch test_network_1 network to docker:9081 --tail=false --headless=true |
158 | | - hagrid launch test_domain_1 domain to docker:9082 --tail=false --build=false --headless=true |
| 233 | + hagrid launch test_domain_1 domain to docker:9082 --tail=false --headless=true |
159 | 234 | hagrid launch test_domain_2 domain to docker:9083 --tail=false --build=false --headless=true |
160 | 235 | bash -c "(docker logs test_domain_1-backend_stream-1 -f &) | grep -q 'Application startup complete' || true" |
161 | 236 | bash -c "(docker logs test_domain_2-backend_stream-1 -f &) | grep -q 'Application startup complete' || true" |
|
0 commit comments