develop -> staging #1353
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: 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 }}' |