Skip to content

Commit

Permalink
Add scheduled CI task to validate local job-server setup
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodearnest committed Aug 22, 2024
1 parent d4b735a commit 00cb930
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/job-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Local job-server setup CI

on:
# just for testing in draft PRs, will remove
push:
schedule:
# every day at 2:37am
- cron: "37 2 * * *"

jobs:
test-local-job-server:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- uses: "opensafely-core/setup-action@v1"
with:
python-version: "3.11"
install-just: true

- run: "pwd; ls -l .;"

- name: "Test local job server setup"
# this should download, configure and successfully launch a local job-server
# we test it to make sure we catch breaking changes in job-server configuration we need to update.
run: just jobserver/configure username


- name: "Notify Slack on Failure"
if: failure() && github.ref_name == 'main'
uses: zuplo/github-action-slack-notify-build@cf8e7e66a21d76a8125ea9648979c30920195552 # v2
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
channel_id: C069YDR4NCA
status: "Airlock local job-server integration test failure"
color: danger

0 comments on commit 00cb930

Please sign in to comment.