-
Notifications
You must be signed in to change notification settings - Fork 30
108 lines (101 loc) · 3.4 KB
/
run-cli-e2e-tests.yml
File metadata and controls
108 lines (101 loc) · 3.4 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: CLI E2EE Tests
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
name: CLI End-to-End Testing
steps:
- uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Build the CLI
run: go build -o infisical-cli
- name: Checkout infisical repo
uses: actions/checkout@v6
with:
repository: infisical/infisical
path: infisical
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
docker system prune -af
df -h
- name: Test with the Go CLI
run: go test -v -timeout 30m -count=1 github.com/infisical/cli/e2e-tests/proxy github.com/infisical/cli/e2e-tests/relay
working-directory: ./e2e
env:
INFISICAL_BACKEND_DIR: ${{ github.workspace }}/infisical/backend
INFISICAL_LICENSE_KEY: ${{ secrets.INFISICAL_LICENSE_KEY }}
INFISICAL_CLI_EXECUTABLE: ${{ github.workspace }}/infisical-cli
CLI_E2E_DEFAULT_RUN_METHOD: subprocess
agent-test:
runs-on: ubuntu-latest
name: Agent End-to-End Testing
steps:
- uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Build the CLI
run: go build -o infisical-cli
- name: Checkout infisical repo
uses: actions/checkout@v6
with:
repository: infisical/infisical
path: infisical
- name: Test Certificate Agent
run: go test -v -timeout 30m -count=1 github.com/infisical/cli/e2e-tests/agent
working-directory: ./e2e
env:
INFISICAL_LICENSE_KEY: ${{ secrets.INFISICAL_LICENSE_KEY }}
INFISICAL_BACKEND_DIR: ${{ github.workspace }}/infisical/backend
INFISICAL_CLI_EXECUTABLE: ${{ github.workspace }}/infisical-cli
CLI_E2E_DEFAULT_RUN_METHOD: subprocess
pam-test:
runs-on: ubuntu-latest
name: PAM End-to-End Testing
steps:
- uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Build the CLI
run: go build -o infisical-cli
- name: Checkout infisical repo
uses: actions/checkout@v6
with:
repository: infisical/infisical
path: infisical
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
docker system prune -af
df -h
- name: Test PAM Resources
run: go test -v -timeout 30m -count=1 github.com/infisical/cli/e2e-tests/pam
working-directory: ./e2e
env:
INFISICAL_BACKEND_DIR: ${{ github.workspace }}/infisical/backend
INFISICAL_LICENSE_KEY: ${{ secrets.INFISICAL_LICENSE_KEY }}
INFISICAL_CLI_EXECUTABLE: ${{ github.workspace }}/infisical-cli
CLI_E2E_DEFAULT_RUN_METHOD: subprocess