-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (65 loc) · 2.09 KB
/
discovery_streams.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
name: discovery_streams
on:
push:
branches:
- master
paths:
- "apps/discovery_streams/**"
- "mix.lock"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
paths:
- "apps/discovery_streams/**"
- "mix.lock"
workflow_dispatch:
branches:
- master
jobs:
ci:
if: github.event.pull_request.draft == false
name: Verify Application
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 21.3.8.24
version-type: strict
elixir-version: 1.10.4
- name: Get dependencies
run: |
bash scripts/gh-action-get-deps.sh
- name: Run static checks
run: |
bash scripts/gh-action-static-checks.sh ${GITHUB_WORKFLOW}
- name: Run unit tests
run: |
bash scripts/gh-action-unit-test.sh ${GITHUB_WORKFLOW}
- name: Run integration tests
run: |
bash scripts/gh-action-integration-test.sh ${GITHUB_WORKFLOW}
- name: Publish development image
run: |
bash scripts/gh-action-publish.sh ${GITHUB_WORKFLOW}
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish to Quay
run: |
bash scripts/gh-action-quay.sh ${GITHUB_WORKFLOW} development
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
- if: always() && github.ref == 'refs/heads/master'
name: Report Status
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: "failure"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}