-
-
Notifications
You must be signed in to change notification settings - Fork 40
198 lines (176 loc) · 6.33 KB
/
windows-test.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
---
name: Integration Test on Windows
on:
workflow_dispatch:
inputs:
aqua_version:
required: false
pr_number:
required: false
ref:
required: false
env:
AQUA_GLOBAL_CONFIG: ${{ github.workspace }}/tests/main/aqua-global.yaml:${{ github.workspace }}/tests/main/aqua-global-2.yaml
AQUA_LOG_COLOR: always
AQUA_LOG_LEVEL: debug
permissions: {}
jobs:
integration-test-windows:
timeout-minutes: 30
runs-on: windows-latest
defaults:
run:
shell: bash
env:
GITHUB_TOKEN: ${{github.token}}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{inputs.ref}}
- run: gh pr checkout "${{inputs.pr_number}}"
if: inputs.pr_number != ''
env:
GITHUB_TOKEN: ${{github.token}}
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
if: inputs.aqua_version != ''
with:
aqua_version: ${{inputs.aqua_version}}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
if: inputs.aqua_version == ''
with:
go-version: 1.22.5
cache: true
- run: go install ./cmd/aqua
if: inputs.aqua_version == ''
- run: echo "$HOME/AppData/Local/aquaproj-aqua/bin" >> "$GITHUB_PATH"
- run: aqua policy allow
- run: echo "AQUA_GLOBAL_CONFIG=$PWD/tests/main/aqua-global.yaml:$PWD/tests/main/aqua-global-2.yaml" >> "$GITHUB_ENV"
- run: echo "standard,kubernetes-sigs/kind" | aqua g -f -
- run: echo "x-motemen/ghq" | aqua g -f -
- run: aqua g x-motemen/ghq aquaproj/aqua-installer
- run: echo cli/cli | aqua g -f - x-motemen/ghq aquaproj/aqua-installer
- run: aqua list
- run: aqua update-checksum
working-directory: tests/main
- run: aqua i -l -a
working-directory: tests/main
- run: cmdx -v
working-directory: tests/main
- run: aqua i
working-directory: tests/main
- run: aqua which golangci-lint
working-directory: tests/main
- run: aqua which go
- run: golangci-lint version
- run: kind version
working-directory: tests/main
- run: kind version
- run: restic version
env:
AQUA_PROGRESS_BAR: "true"
- run: migrate -version
- run: ghq -version
- run: gh version
- run: aqua -c tests/main/aqua-global.yaml g local,kubernetes-sigs/kustomize
- run: github-compare -v
- run: helm version
- run: terrafmt version
- run: aqua g -i suzuki-shunsuke/tfcmt
working-directory: tests/main
- run: git diff aqua.yaml
working-directory: tests/main
- name: "Test generate-registry"
run: aqua gr cli/cli
- name: "Test generate-registry (rust)"
run: aqua gr XAMPPRocky/tokei
# Test if global configuration files are read in `aqua list` and `aqua g`
- run: aqua g suzuki-shunsuke/cmdx
working-directory: ${{ env.HOME }}
- run: aqua list
working-directory: ${{ env.HOME }}
- name: test aqua cp
run: aqua cp actionlint golangci-lint
- name: test aqua cp
run: dist/actionlint -version
- name: test aqua cp
run: dist/golangci-lint version
- name: Test update-aqua
run: aqua update-aqua
integration-test-windows-pwsh:
timeout-minutes: 30
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{github.token}}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{inputs.ref}}
- run: gh pr checkout "${{inputs.pr_number}}"
if: inputs.pr_number != ''
env:
GITHUB_TOKEN: ${{github.token}}
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
if: inputs.aqua_version != ''
with:
aqua_version: ${{inputs.aqua_version}}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
if: inputs.aqua_version == ''
with:
go-version: 1.22.5
cache: true
- run: go install ./cmd/aqua
if: inputs.aqua_version == ''
- run: aqua policy allow
- run: echo "$HOME\AppData\Local\aquaproj-aqua\bat" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- run: echo "AQUA_GLOBAL_CONFIG=$PWD\tests\main\aqua-global.yaml;$PWD\tests\main\aqua-global-2.yaml" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- run: echo "standard,kubernetes-sigs/kind" | aqua g -f -
- run: echo "x-motemen/ghq" | aqua g -f -
- run: aqua g x-motemen/ghq aquaproj/aqua-installer
- run: echo cli/cli | aqua g -f - x-motemen/ghq aquaproj/aqua-installer
- run: aqua list
- run: aqua update-checksum
working-directory: tests/main
- run: aqua i -l -a
working-directory: tests/main
- run: cmdx -v
working-directory: tests/main
- run: aqua i
working-directory: tests/main
- run: aqua which golangci-lint
working-directory: tests/main
- run: aqua which go
- run: golangci-lint version
- run: kind version
working-directory: tests/main
- run: kind version
- run: restic version
env:
AQUA_PROGRESS_BAR: "true"
- run: migrate -version
- run: ghq -version
- run: gh version
- run: aqua -c tests/main/aqua-global.yaml g local,kubernetes-sigs/kustomize
- run: github-compare -v
- run: terrafmt version
- run: helm version
- run: aqua g -i suzuki-shunsuke/tfcmt
working-directory: tests/main
- run: git diff aqua.yaml
working-directory: tests/main
- name: "Test generate-registry"
run: aqua gr cli/cli
- name: "Test generate-registry (rust)"
run: aqua gr XAMPPRocky/tokei
# Test if global configuration files are read in `aqua list` and `aqua g`
- run: aqua g suzuki-shunsuke/cmdx
working-directory: ${{env.HOME}}
- run: aqua list
working-directory: ${{env.HOME}}
- name: test aqua cp
run: aqua cp actionlint golangci-lint
- name: test aqua cp
run: dist/actionlint -version
- name: test aqua cp
run: dist/golangci-lint version
- name: Test update-aqua
run: aqua update-aqua