Skip to content

Commit

Permalink
upload compose logs in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <mregxn@gmail.com>
  • Loading branch information
MregXN committed Oct 9, 2023
1 parent aec7a45 commit 04e6f48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/run-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
TESTS_OUTPUT_TARGET: "tests.txt"
COMPONENTS_OUTPUT_TARGET: "components.txt"
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -29,16 +27,14 @@ jobs:
- name: Run Script
run: python3 __init__.py

- name: Upload tests results
- name: Compress logs
if: always()
uses: actions/upload-artifact@master
with:
name: "tests result"
path: ${{ env.TESTS_OUTPUT_TARGET }}
run: |
tar -cvf result.tar tests.txt components.txt
- name: Upload components results
- name: Upload results
if: always()
uses: actions/upload-artifact@master
with:
name: "components result"
path: ${{ env.COMPONENTS_OUTPUT_TARGET }}
name: "result"
path: "result.tar"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ test_report_e2e.xml
test_report_e2e.json
tests.txt
components.txt
result.tar
global_settings.py

0 comments on commit 04e6f48

Please sign in to comment.