Test research template dev container #5
Workflow file for this run
This file contains 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: Test research template dev container | |
on: | |
schedule: | |
- cron: "18 8 * * *" | |
workflow_dispatch: | |
jobs: | |
dev-container: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout research-template repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 'opensafely/research-template' | |
- name: Checkout research-template-docker repository in subdirectory | |
uses: actions/checkout@v4 | |
with: | |
path: 'research-template/research-template-docker' | |
- name: Test dev container | |
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3.1900000349 | |
with: | |
runCmd: ./research-template/research-template-docker/tests/dev_container.sha | |
- name: Notify Slack on failure | |
if: failure() | |
uses: voxmedia/github-action-slack-notify-build@3665186a8c1a022b28a1dbe0954e73aa9081ea9e # v1.6.0 | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
with: | |
channel_id: C069SADHP1Q | |
status: "Dev Container Test Failure" | |
color: danger |