Skip to content

Commit

Permalink
Update test workflows to increase readability
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn committed Sep 30, 2023
1 parent a2dd769 commit 91771b5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/docker-security-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Docker Security Test Workflow
on:
pull_request:
branches:
- "*"
- "**"
push:
branches:
- "*"
- "**"

jobs:
test:
docker-test:
# This job runs on Linux
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -83,3 +83,17 @@ jobs:
with:
name: logs
path: build/testclusters/integTest-*/logs/*
- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
with:
dest: './logs'
- name: Tar logs
if: failure()
run: tar cvzf ./logs.tgz ./logs
- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@v2
with:
name: logs.tgz
path: ./logs.tgz
6 changes: 3 additions & 3 deletions .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Multi node test workflow
on:
pull_request:
branches:
- "*"
- "**"
push:
branches:
- "*"
- "**"

jobs:
test:
multi-node-test:
# This job runs on Linux
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/security-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Security test workflow
on:
pull_request:
branches:
- "*"
- "**"
push:
branches:
- "*"
- "**"

jobs:
test:
security-test:
# This job runs on Linux
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Test and Build Workflow
on:
pull_request:
branches:
- "*"
- "**"
push:
branches:
- "*"
- "**"

jobs:
build:
test-and-build:
env:
BUILD_ARGS: ${{ matrix.os_build_args }}
WORKING_DIR: ${{ matrix.working_directory }}.
Expand Down

0 comments on commit 91771b5

Please sign in to comment.