-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (59 loc) · 1.9 KB
/
test-action-output-file.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
name: Action (with artifacts) CI
on: [push]
jobs:
test-action-job-win32:
runs-on: windows-latest
name: kube-score (Win32)
steps:
- name: Checkout
uses: actions/checkout@v2
- name: kube-score action step
uses: ./ # Uses an action in the root directory
id: ksga
with:
manifests-folders: './sample-manifests/sample-manifests/*.yaml,./sample-manifests/sample-policy-manifest/*.yaml'
ignore-exit-code: 'true'
output-file: 'output.txt'
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: artifact-1
path: output.txt
test-action-job-linux:
runs-on: ubuntu-latest
name: kube-score (Linux)
steps:
- name: Checkout
uses: actions/checkout@v2
- name: kube-score action step
uses: ./ # Uses an action in the root directory
id: ksga
with:
manifests-folders: './sample-manifests/sample-manifests/*.yaml,./sample-manifests/sample-policy-manifest/*.yaml'
ignore-exit-code: 'true'
kube-score-version: '1.14.0'
output-file: 'output.txt'
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: artifact-2
path: output.txt
test-action-job-macos:
runs-on: macos-latest
name: kube-score (MacOS)
steps:
- name: Checkout
uses: actions/checkout@v2
- name: kube-score action step
uses: ./ # Uses an action in the root directory
id: ksga
with:
manifests-folders: './sample-manifests/sample-manifests/*.yaml,./sample-manifests/sample-policy-manifest/*.yaml'
ignore-exit-code: 'true'
kube-score-version: '1.14.0'
output-file: 'output.txt'
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: artifact-3
path: output.txt