-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 990 Bytes
/
run-tests.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
name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: [ ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Build
run: docker build -t run-test-suite .
- name: Run tests
env:
CLARIFAI_API_KEY: ${{ secrets.CLARIFAI_API_KEY }}
CLARIFAI_GRPC_BASE: ${{ secrets.CLARIFAI_GRPC_BASE }}
run: docker run -e CLARIFAI_API_KEY -e CLARIFAI_GRPC_BASE run-test-suite
- name: Slack Notify
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_ICON: "https://raw.githubusercontent.com/github/explore/2c7e603b797535e5ad8b4beb575ab3b7354666e1/topics/actions/actions.png"
SLACK_USERNAME: "GitHub Alerts"
SLACK_CHANNEL: "#grpc-client-repo-alerts"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: "Test failure"
SLACK_FOOTER: "Clarifai PHP GRPC Repo"