Skip to content

Commit

Permalink
Add debug steps to figure out why test-binaries.yml isn't running whe…
Browse files Browse the repository at this point in the history
…n build.yml completes.
  • Loading branch information
afinetooth committed Sep 26, 2024
1 parent 6a8a2d5 commit b29eb31
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 12 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,26 @@ jobs:
- name: Package linux binaries
run: make package

# Debug step to verify what files are in the dist/ directory
- name: List files in dist/ directory
run: ls -la dist/

- name: Upload linux binaries
uses: actions/upload-artifact@v3
with:
name: coveralls-linux-binaries
path: dist/*
if-no-files-found: error

- name: Create Trigger File
run: echo "test-binaries-trigger" > test-binaries-trigger.txt

- name: Upload Trigger Artifact
uses: actions/upload-artifact@v3
with:
name: test-binaries-trigger
path: test-binaries-trigger.txt

# - name: Create Trigger File
# run: echo "test-binaries-trigger" > test-binaries-trigger.txt
#
# - name: Upload Trigger Artifact
# uses: actions/upload-artifact@v3
# with:
# name: test-binaries-trigger
# path: test-binaries-trigger.txt
#
# - name: Upload coveralls-linux
# uses: actions/upload-artifact@v3
# with:
Expand Down Expand Up @@ -142,6 +146,10 @@ jobs:
# name: coveralls-linux-aarch64.tar.gz
# path: dist/coveralls-linux-aarch64.tar.gz

# Debug step to verify what files are in the dist/ directory
- name: List files in dist/ directory
run: ls -la dist/

release:
runs-on: ubuntu-latest
needs: [build-windows, build-linux]
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/test-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,28 @@ jobs:
- name: Print event context
run: echo "${{ toJson(github.event) }}"

# Debug step to list available artifacts
- name: List available artifacts in dist/
run: ls -la dist/

# Debug step to list available artifacts
- name: List available artifacts in ./binaries/
run: ls -la ./binaries/

- name: Download built artifacts (linux binaries)
uses: actions/download-artifact@v3
with:
name: |
coveralls-linux-x86_64
coveralls-linux-aarch64
name: coveralls-linux-binaries
path: ./binaries/

# Debug step to list available artifacts
- name: List available artifacts in ./binaries/
run: ls -la ./binaries/

# Debug step to list available artifacts
- name: List available artifacts in dist/
run: ls -la dist/

- name: Download coverage report
uses: actions/download-artifact@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/test-trigger-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Test Trigger Workflow"

on:
workflow_run:
workflows: ["Build"]
types:
- completed

jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "Trigger worked"

0 comments on commit b29eb31

Please sign in to comment.