|
87 | 87 |
|
88 | 88 | - uses: actions/checkout@v2 |
89 | 89 |
|
90 | | - - name: Set up QEMU |
91 | | - uses: docker/setup-qemu-action@v1 |
92 | | - |
93 | 90 | - name: Restore tool cache |
94 | 91 | id: tool-cache |
95 | 92 | uses: actions/cache@v2.1.3 |
@@ -117,3 +114,65 @@ jobs: |
117 | 114 | with: |
118 | 115 | name: artifacts |
119 | 116 | path: snapshot/**/* |
| 117 | + |
| 118 | + Acceptance-Linux: |
| 119 | + # Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline |
| 120 | + name: "Acceptance tests (Linux)" |
| 121 | + needs: [Build-Snapshot-Artifacts] |
| 122 | + runs-on: ubuntu-20.04 |
| 123 | + steps: |
| 124 | + - uses: actions/checkout@v2 |
| 125 | + |
| 126 | + - uses: actions/download-artifact@v2 |
| 127 | + with: |
| 128 | + name: artifacts |
| 129 | + path: snapshot |
| 130 | + |
| 131 | + - name: Build key for image cache |
| 132 | + run: make install-fingerprint |
| 133 | + |
| 134 | + - name: Restore install.sh test image cache |
| 135 | + id: install-test-image-cache |
| 136 | + uses: actions/cache@v2.1.3 |
| 137 | + with: |
| 138 | + path: ${{ github.workspace }}/test/install/cache |
| 139 | + key: ${{ runner.os }}-install-test-image-cache-${{ hashFiles('test/install/cache.fingerprint') }} |
| 140 | + |
| 141 | + - name: Restore tool cache |
| 142 | + id: tool-cache |
| 143 | + uses: actions/cache@v2.1.3 |
| 144 | + with: |
| 145 | + path: ${{ github.workspace }}/.tmp |
| 146 | + key: ${{ runner.os }}-tool-${{ hashFiles('Makefile') }} |
| 147 | + |
| 148 | + - name: Load test image cache |
| 149 | + if: steps.install-test-image-cache.outputs.cache-hit == 'true' |
| 150 | + run: make install-test-cache-load |
| 151 | + |
| 152 | + - name: Run install.sh tests (Linux) |
| 153 | + run: make install-test |
| 154 | + |
| 155 | + - name: (cache-miss) Create test image cache |
| 156 | + if: steps.install-test-image-cache.outputs.cache-hit != 'true' |
| 157 | + run: make install-test-cache-save |
| 158 | + |
| 159 | + Acceptance-Mac: |
| 160 | + # Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline |
| 161 | + name: "Acceptance tests (Mac)" |
| 162 | + needs: [Build-Snapshot-Artifacts] |
| 163 | + runs-on: macos-latest |
| 164 | + steps: |
| 165 | + - uses: actions/checkout@v2 |
| 166 | + |
| 167 | + - uses: actions/download-artifact@v2 |
| 168 | + with: |
| 169 | + name: artifacts |
| 170 | + path: snapshot |
| 171 | + |
| 172 | + - name: Install docker CLI |
| 173 | + run: | |
| 174 | + brew install docker |
| 175 | + mkdir ~/.docker |
| 176 | +
|
| 177 | + - name: Run install.sh tests (Mac) |
| 178 | + run: make install-test-ci-mac |
0 commit comments