diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..27f4a0a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5719083 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test dev container + +on: + schedule: + - cron: "56 5 * * *" + workflow_dispatch: + +jobs: + dev-container: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Test dev container + uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8 # v0.3.1900000349 + with: + runCmd: opensafely run run_all + + - name: Notify Slack on failure + if: failure() && github.event_name == 'schedule' + uses: zuplo/github-action-slack-notify-build@cf8e7e66a21d76a8125ea9648979c30920195552 # v2 + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + with: + channel_id: C069YDR4NCA + status: "Scheduled dev container test run failure" + color: danger