-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (71 loc) · 2.38 KB
/
stk-quality-check.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: STK actions quality-check
on:
pull_request:
jobs:
stackspot-runtime-v2:
name: StackSpot Runtime (v2)
runs-on: ubuntu-latest
env:
LANG: C.UTF-8
LANGUAGE: C.UTF-8
LC_ALL: C.UTF-8
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: sudo apt update && sudo apt install -y curl unzip git jq
name: install dependencies
- name: Setup STK CLI
run: |
curl \
--fail \
--http2-prior-knowledge \
--location \
--output /tmp/stk.deb \
--silent \
--show-error \
--tlsv1.3 \
https://stk.stackspot.com/installer/linux/stk.deb
sudo dpkg --install /tmp/stk.deb || echo installed
rm --force /tmp/stk.deb
- name: Show STK CLI version
run: $HOME/.stk/bin/stk --version
- name: Login StackSpot
run: |
$HOME/.stk/bin/stk login -id ${{ secrets.STK_CLIENT_ID }} -key ${{ secrets.STK_CLIENT_SECRET }} -r ${{ secrets.STK_REALM }}
- name: Validate main action
run: |
$HOME/.stk/bin/stk validate action
- name: Validate runtime-cancel-run-action action
run: |
cd runtime-cancel-run-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-create-manifest-action action
run: |
cd runtime-create-manifest-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-deploy-action action
run: |
cd runtime-deploy-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-destroy-action action
run: |
cd runtime-destroy-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-iac-action action
run: |
cd runtime-iac-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-manager-action action
run: |
cd runtime-manager-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-rollback-action action
run: |
cd runtime-rollback-action
$HOME/.stk/bin/stk validate action
- name: Validate runtime-matrix action
run: |
cd runtime-matrix
$HOME/.stk/bin/stk validate action