-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1.04 KB
/
job-server.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Local job-server setup CI
on:
schedule:
# every day at 2:37am
- cron: "37 2 * * *"
# just for testing in draft PRs, will remove
push:
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
- 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