Skip to content

Commit

Permalink
refactor: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tung-Huynh-Shopmacher committed Aug 13, 2024
1 parent f557963 commit b4a74fe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
- name: Run npm audit
run: npm audit

- name: Wait for artifact to become available
run: sleep 5

- name: Download code coverage results
uses: actions/download-artifact@v4
with:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: processor/junit-report.xml
path: processor/junit-report.xml

- name: Confirm Artifact Upload
run: |
echo "Checking for uploaded artifacts..."
if [ ! "$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s https://api.github.com/repos/${{ github.repository }}/actions/artifacts | jq '.artifacts[] | select(.name=="code-coverage-report") | .name')" ]; then
echo "Artifact 'code-coverage-report' not found!"
exit 1
else
echo "Artifact 'code-coverage-report' found successfully."
fi
3 changes: 3 additions & 0 deletions .github/workflows/testrail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
with:
python-version: '3.x'

- name: Wait for artifact to become available
run: sleep 5

- name: Download code coverage results
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit b4a74fe

Please sign in to comment.