diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39ab786..2def3df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,9 +41,35 @@ jobs: name: research-template-image path: /tmp/research-template.tar.gz - publish: + test-devcontainer-with-research-template: needs: [build-and-test] + runs-on: ubuntu-latest + + - name: Checkout research template default branch + uses: actions/checkout@v4 + repository: opensafely/research-template + + - name: Download Docker image + uses: actions/download-artifact@v4 + with: + name: research-template-image + path: /tmp/image + + - name: Import Docker image + run: docker load --input /tmp/image/research-template.tar.gz + + - name: Tag Docker image for use with dev container + run: docker tag $IMAGE_NAME $PUBLIC_IMAGE_NAME:latest + + - name: Build and run dev container task + uses: devcontainers/ci@v0.3 + with: + runCmd: opensafely run run_all + + publish: + needs: [build-and-test, test-devcontainer] + runs-on: ubuntu-22.04 permissions: