This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
71 lines (62 loc) · 2.11 KB
/
nightly.yaml
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
---
name: Test Blueprints
on:
push:
branches:
- "*"
schedule:
- cron: '0 0 * * *'
jobs:
build:
name: Test Blueprints
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
folder: [
'consul-ingress/',
'docs',
'vault-k8s/',
'consul-nomad-tracing/',
'consul-terminating-gateways/',
'consul-k8s-federated/',
'modules/consul-nomad/',
'modules/kubernetes-consul/',
'modules/kubernetes-istio/',
'modules/kubernetes-monitoring/',
'modules/kubernetes-vault/',
'modules/vault-dev/',
'modules/consul-docker/'
]
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Check for changes
id: check_for_changes
run: |
echo "::set-output name=change_count::$(git diff --name-only HEAD^ HEAD | grep '${{ matrix.folder }}' | wc -l)"
- name: Get dependencies
if: ( steps.check_for_changes.outputs.change_count != '0' || github.event_name == 'schedule' )
run: |
echo "changes: ${{ steps.check_for_changes.outputs.change_count }} event: ${{ github.event_name }}"
curl https://shipyard.run/install | bash
- name: Run tests
if: ( steps.check_for_changes.outputs.change_count != '0' || github.event_name == 'schedule' )
run: |
shipyard test ${{ matrix.folder }}
- name: Send status to Discord
uses: sarisia/actions-status-discord@v1
if: ( steps.check_for_changes.outputs.change_count != '0' || github.event_name == 'schedule' )
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
title: ${{ matrix.folder }}
description: "Functional tests for ${{ matrix.folder }}"
- name: Send failure status to Discord
uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
title: ${{ matrix.folder }}
description: "Functional tests for ${{ matrix.folder }}"