-
Notifications
You must be signed in to change notification settings - Fork 26
71 lines (59 loc) · 1.74 KB
/
weekly-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
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
# Copyright (c) HashiCorp, Inc.
name: Weekly Tests
on:
workflow_dispatch:
schedule:
- cron: '10 2 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GO_VERSION: 1.20.10
CONSUL_VERSION: 1.12.1
TERRAFORM_VERSION: 1.6.2
VAULT_VERSION: 1.10.3
jobs:
compatability:
name: Compatability Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Run compatability tests
run: |
make test-compat
vault-integration:
name: Vault Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Vault
uses: ./.github/actions/setup-vault
with:
version: ${{ env.VAULT_VERSION }}
- name: Run Vault integration tests
run: |
make test-vault-integration
slack-notification:
name: Slack Notification
if: |
failure()
needs:
- compatability
- vault-integration
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@26a36836c887f260477432e4314ec3490a84f309 # master
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}