Skip to content

Commit

Permalink
GitHub: upload logs on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Sep 19, 2024
1 parent 12f30c0 commit c98a95d
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:

strategy:
matrix:
node_version: [16.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
node_version: [ 16.x ]
os: [ ubuntu-latest, windows-latest, macOS-latest ]

steps:
- name: git checkout
Expand Down Expand Up @@ -63,8 +63,8 @@ jobs:

strategy:
matrix:
go_version: [1.18.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
go_version: [ 1.18.x ]
os: [ ubuntu-latest, windows-latest, macOS-latest ]

steps:
- name: git checkout
Expand All @@ -84,7 +84,7 @@ jobs:

- name: build backend binary
run: make build

- name: build CLI binaries
run: make go-install-cli

Expand Down Expand Up @@ -244,6 +244,19 @@ jobs:
- name: run check
run: make itest

- name: Zip log files on failure
if: ${{ failure() }}
timeout-minutes: 5
run: 7z a logs-itest.zip itest/**/*.log

- name: Upload log files on failure
uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: logs-itest
path: logs-itest.zip
retention-days: 5

########################
# check PR updates release notes
########################
Expand All @@ -256,4 +269,4 @@ jobs:
uses: actions/checkout@v3

- name: release notes check
run: scripts/check-release-notes.sh
run: scripts/check-release-notes.sh

0 comments on commit c98a95d

Please sign in to comment.