Skip to content

Commit

Permalink
Upload docker test cluster log (#964) (#975)
Browse files Browse the repository at this point in the history
* Update test workflows to increase readability



* Test if docker logs upload right



* Add back if failure



---------


(cherry picked from commit a9ad1f6)

Signed-off-by: bowenlan-amzn <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 67f583b commit e5a24df
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
18 changes: 15 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 @@ -81,3 +81,15 @@ jobs:
with:
name: logs
path: build/testclusters/integTest-*/logs/*
- name: Collect docker logs on failure
uses: jwalton/gh-docker-logs@v2
with:
dest: './logs'
- name: Tar logs
run: tar cvzf ./logs.tgz ./logs
- name: Upload logs to GitHub
uses: actions/upload-artifact@v2
if: failure()
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 e5a24df

Please sign in to comment.