-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (63 loc) · 2.21 KB
/
test-setup-action.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
72
73
74
75
76
name: test-setup-action
on:
push:
branches: [main]
pull_request:
jobs:
setops-versions-latest:
name: SetOps Versions
runs-on: ubuntu-latest
strategy:
matrix:
setops_versions: ["0.10.3", latest, next]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup SetOps - ${{ matrix['setops_versions'] }}
uses: ./setup
with:
setops_version: ${{ matrix['setops_versions'] }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate SetOps Version - ${{ matrix['setops_versions'] }}
if: ${{ matrix['setops_versions'] != 'latest' && matrix['setops_versions'] != 'next' }}
run: |
setops version | grep "CLI Version: ${{ matrix['setops_versions']}}"
- name: Validate SetOps Version - ${{ matrix['setops_versions'] }}
if: ${{ matrix['setops_versions'] == 'latest' || matrix['setops_versions'] == 'next' }}
run: |
setops version | grep "CLI Version: "
setops-versions-constraints:
name: SetOps Versions Constraints
runs-on: ubuntu-latest
strategy:
matrix:
setops_versions: [~0.9, 0.9.x, <0.10.0]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup SetOps - ${{ matrix['setops_versions'] }}
uses: ./setup
with:
setops_version: ${{ matrix['setops_versions'] }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate SetOps Version - ${{ matrix['setops_versions'] }}
run: |
setops version | grep "CLI Version: 0\.9"
setops-with-login:
name: SetOps Credentials
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup SetOps
uses: ./setup
with:
setops_api_url: https://${{ secrets.SETOPS_API_DOMAIN }}
setops_organization: ${{ secrets.SETOPS_ORG }}
setops_password: ${{ secrets.SETOPS_PASSWORD }}
setops_username: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate successful login
run: setops project | grep "NAME"
- name: setops logout
run: setops logout