Skip to content

Commit 19a1cba

Browse files
committed
CI fixes
1 parent 176f0b9 commit 19a1cba

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/build-samples-json.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Trigger Docs Samples Rebuild
22

33
on:
44
push:
5-
branches: main
5+
branches:
6+
- main
67
paths:
78
- 'samples/**'
89

.github/workflows/check-sample.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,14 @@ jobs:
2525
- name: Run Checks
2626
id: checks
2727
run: |
28-
eval "$(curl -fsSL s.defang.io/install)"
2928
./scripts/check-sample-files.sh > checklist.txt
3029
./scripts/check-modified-samples.sh > modified.txt
3130
echo "@@ MODIFIED @@"
3231
cat modified.txt
3332
34-
# TODO: Uncomment the following lines to validate the Compose files
35-
# once we figure out how to prevent it from erroring on warnings.
36-
# - name: Validate Compose Files with Defang CLI
37-
# run: |
38-
# eval "$(curl -fsSL s.defang.io/install)"
39-
# cat modified.txt | xargs -n1 defang compose config -C > /dev/null
33+
- name: Validate Compose Files with Defang CLI
34+
run: |
35+
cat modified.txt | xargs --no-run-if-empty -n1 defang compose config -C
4036
4137
- name: Add checklist to PR description
4238
uses: actions/github-script@v5

.github/workflows/publish-sample-template.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: Publish Sample Template
22

33
on:
4-
push:
4+
push:
55
branches:
66
- main
7+
paths:
8+
- 'samples/**'
9+
- 'scripts/template-manager.js'
10+
- 'scripts/check-modified-samples.sh'
711

812
jobs:
913
publish_samples:
1014
runs-on: ubuntu-latest
11-
permissions:
15+
permissions:
1216
contents: write
1317
pull-requests: write
1418
steps:

tools/testing/deployer/deployer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ func (d *CliDeployer) Cleanup(ctx context.Context) error {
319319
}
320320

321321
func (d *CliDeployer) RunCommand(ctx context.Context, opt func(*exec.Cmd), command string, args ...string) (*exec.Cmd, error) {
322+
log.Printf("Running command in dir %q: %q %q", d.WorkDir, command, args)
322323
cmd := exec.CommandContext(ctx, command, args...)
323324
cmd.Env = d.EnvVars
324325
if d.WorkDir != "" {

0 commit comments

Comments
 (0)