mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-03-18 10:32:36 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: acceptance tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
push:
|
|
branches:
|
|
- 'develop'
|
|
|
|
concurrency:
|
|
group: mizu-acceptance-tests-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-acceptance-tests:
|
|
name: Run acceptance tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.16
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '^1.16'
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup acceptance test
|
|
run: source ./acceptanceTests/setup.sh
|
|
|
|
- name: Test
|
|
run: make acceptance-test
|
|
|
|
- name: Slack notification on failure
|
|
uses: ravsamhq/notify-slack-action@v1
|
|
if: always()
|
|
with:
|
|
status: ${{ job.status }}
|
|
notification_title: 'Mizu {workflow} has {status_message}'
|
|
message_format: '{emoji} *{workflow}* {status_message} during <{run_url}|run>, after commit: <{commit_url}|{commit_sha}>'
|
|
footer: 'Linked Repo <{repo_url}|{repo}>'
|
|
notify_when: 'failure'
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|