Skip to content

Commit feee341

Browse files
debugging GitHub Actions
1 parent 24e647d commit feee341

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/build-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: task build
5353

5454
- name: Test
55-
run: task test
55+
run: task test -- true
5656

5757
# example can't run on GitHub Actions due to compose network configuration
5858
# since access to the internet isn't possible from within the container network

Taskfile.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ tasks:
2323
desc: "Run tests."
2424
vars:
2525
AWS_PROFILE: '{{.AWS_PROFILE | default "default"}}'
26+
HIDE_OUTPUT: '{{.CLI_ARGS | default "false"}}'
2627
env:
2728
COMPOSE_FILE: "compose.test.yml"
2829
cmds:
2930
- echo "Running tests using '{{.AWS_PROFILE}}' AWS profile..."
3031
- docker compose up --force-recreate --detach --wait || { docker compose logs; exit 1; }
3132
- docker compose logs metadock
32-
- docker compose exec -it test /test.sh
33+
- docker compose exec -it test /test.sh {{if .HIDE_OUTPUT}}> /dev/null{{end}}
3334

3435
example:
3536
desc: "Run example."
@@ -41,7 +42,7 @@ tasks:
4142
- echo "Running example using '{{.AWS_PROFILE}}' AWS profile..."
4243
- docker compose up --force-recreate --detach --wait || { docker compose logs; exit 1; }
4344
- docker compose logs metadock
44-
- docker compose exec -it example aws s3 ls
45+
- docker compose exec -it example aws sts get-caller-identity --no-cli-pager
4546

4647
clean:
4748
desc: "Stop services and clean up."

test.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,3 @@ heading "Running tests..."
2121

2222
topic "aws sts get-caller-identity"
2323
aws sts get-caller-identity --no-cli-pager | indent
24-
25-
#topic "aws s3 ls"
26-
#aws s3 ls | indent
27-
#
28-
#topic "aws ec2 describe-instances"
29-
#aws ec2 describe-instances --region us-east-1 | indent

0 commit comments

Comments
 (0)