-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (74 loc) · 2.45 KB
/
portal-checks.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Check backend code
env:
DOCKER_BUILDKIT: 1
on:
pull_request:
branches:
- '**'
push:
branches:
- develop
- staging
- main
jobs:
check_web:
name: Check Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Python Code Checks
run: |
make check-python-code
- uses: actions/checkout@v2
- name: Slack Notification
continue-on-error: true
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#FF0000'
SLACK_ICON: https://avatars0.githubusercontent.com/u/818058?s=200&v=4
SLACK_TITLE: '${{ github.ref_name }} CodeCheck ${{ job.status }} :warning:'
SLACK_USERNAME: ${{ github.actor }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: '${{ github.ref_name }} Action ${{ job.status }}'
run_tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Tests
run: |
make test
- uses: actions/checkout@v2
- name: Slack Notification
continue-on-error: true
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#FF0000'
SLACK_ICON: https://avatars0.githubusercontent.com/u/818058?s=200&v=4
SLACK_TITLE: '${{ github.ref_name }} CodeCheck ${{ job.status }} :warning:'
SLACK_USERNAME: ${{ github.actor }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: '${{ github.ref_name }} Action ${{ job.status }}'
check_migrations:
name: Check Migrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
cp ./envs/web.template ./envs/web
docker compose build web
docker compose run web python manage.py makemigrations --check
- uses: actions/checkout@v2
- name: Slack Notification
continue-on-error: true
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#FF0000'
SLACK_ICON: https://avatars0.githubusercontent.com/u/818058?s=200&v=4
SLACK_TITLE: '${{ github.ref_name }} CodeCheck ${{ job.status }} :warning:'
SLACK_USERNAME: ${{ github.actor }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: '${{ github.ref_name }} Action ${{ job.status }}'