@@ -37,14 +37,16 @@ jobs:
37
37
filters : |
38
38
code:
39
39
- '**/*.go'
40
- - '**/*.ps1'
41
- - '**/*.tmpl'
42
- - '.github/workflows/**'
40
+ - '.github/workflows/main.yml'
43
41
- '.goreleaser.yaml'
44
42
- 'Makefile'
43
+ - 'assets/**/*.tmpl'
45
44
- 'assets/docker/**'
46
- - 'assets/scripts/**'
45
+ - 'assets/scripts/*.py'
46
+ - 'assets/scripts/generate-commit.sh'
47
+ - 'assets/scripts/stow-to-chezmoi.sh'
47
48
- 'assets/vagrant/**'
49
+ - 'completions/**'
48
50
- 'go.*'
49
51
- 'internal/**'
50
52
codeql :
@@ -131,22 +133,6 @@ jobs:
131
133
CHEZMOI_GITHUB_TOKEN : ${{ secrets.CHEZMOI_GITHUB_TOKEN }}
132
134
run : |
133
135
go test -race ./...
134
- - name : test-install.sh
135
- run : |
136
- sh assets/scripts/install.sh
137
- bin/chezmoi --version
138
- - name : test-install.ps1
139
- shell : pwsh
140
- run : |
141
- if (Test-Path -Path bin/chezmoi) { Remove-Item -Force bin/chezmoi }
142
- assets/scripts/install.ps1 -d
143
- bin/chezmoi --version
144
- - name : test-install.ps1-irm
145
- shell : pwsh
146
- run : |
147
- if (Test-Path -Path bin/chezmoi) { Remove-Item -Force bin/chezmoi }
148
- iex "&{$(irm 'https://raw.githubusercontent.com/twpayne/chezmoi/${{ github.event.pull_request.head.sha }}/assets/scripts/install.ps1')} -d"
149
- bin/chezmoi --version
150
136
test-oldstable-go :
151
137
needs : changes
152
138
if : github.event_name == 'push' || needs.changes.outputs.code == 'true'
@@ -289,24 +275,6 @@ jobs:
289
275
CHEZMOI_GITHUB_TOKEN : ${{ secrets.CHEZMOI_GITHUB_TOKEN }}
290
276
run : |
291
277
go test -ldflags="-X github.com/twpayne/chezmoi/v2/internal/chezmoitest.umaskStr=0o002" -race -timeout=1h ./...
292
- - name : test-install.sh
293
- if : github.event_name == 'push' || needs.changes.outputs.code == 'true'
294
- run : |
295
- rm -f bin/chezmoi
296
- sh assets/scripts/install.sh
297
- bin/chezmoi --version
298
- - name : test-install.ps1
299
- shell : pwsh
300
- run : |
301
- if (Test-Path -Path bin/chezmoi) { Remove-Item -Force bin/chezmoi }
302
- assets/scripts/install.ps1 -d
303
- bin/chezmoi --version
304
- - name : test-install.ps1-irm
305
- shell : pwsh
306
- run : |
307
- if (Test-Path -Path bin/chezmoi) { Remove-Item -Force bin/chezmoi }
308
- iex "&{$(irm 'https://raw.githubusercontent.com/twpayne/chezmoi/${{ github.event.pull_request.head.sha }}/assets/scripts/install.ps1')} -d"
309
- bin/chezmoi --version
310
278
test-website :
311
279
runs-on : ubuntu-22.04
312
280
permissions :
@@ -351,21 +319,6 @@ jobs:
351
319
CHEZMOI_GITHUB_TOKEN : ${{ secrets.CHEZMOI_GITHUB_TOKEN }}
352
320
run : |
353
321
go test -race ./...
354
- - name : test-install.ps1
355
- run : |
356
- if (Test-Path -Path bin/chezmoi.exe) { Remove-Item -Force bin/chezmoi.exe }
357
- assets/scripts/install.ps1 -d
358
- bin/chezmoi.exe --version
359
- - name : test-install.ps1-irm
360
- run : |
361
- if (Test-Path -Path bin/chezmoi.exe) { Remove-Item -Force bin/chezmoi.exe }
362
- iex "&{$(irm 'https://raw.githubusercontent.com/twpayne/chezmoi/${{ github.event.pull_request.head.sha }}/assets/scripts/install.ps1')} -d"
363
- bin/chezmoi.exe --version
364
- - name : test-install.ps1-iwr
365
- run : |
366
- if (Test-Path -Path bin/chezmoi.exe) { Remove-Item -Force bin/chezmoi.exe }
367
- iex "&{$(iwr 'https://raw.githubusercontent.com/twpayne/chezmoi/${{ github.event.pull_request.head.sha }}/assets/scripts/install.ps1')} -d"
368
- bin/chezmoi.exe --version
369
322
check :
370
323
runs-on : ubuntu-22.04
371
324
permissions :
0 commit comments