Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add docker workflows #1

Open
wants to merge 21 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .github/.gitkeep
Empty file.
562 changes: 562 additions & 0 deletions .github/workflows/bump.yaml

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions .github/workflows/code-coverage-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---

name: 'Process Coverage Artifact'

on:
workflow_run:
workflows:
- 'Unit Test'
types:
- completed


permissions:
contents: read
actions: read
checks: write


jobs:
report:
runs-on: ubuntu-latest
# strategy:
# max-parallel: 4
# matrix:
# python-version: ['3.12']
name: Coverage
steps:

- name: Run Tests
run: |
ls -l;

- name: Download Coverage Artifact
uses: actions/download-artifact@v4
with:
name: coverage-report-3.12
# path: coverage.xml
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}

- name: ls
if: success() || failure()
run: |
ls -l;

- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: '60 85'


# - name: Add Coverage PR Comment
# uses: marocchino/sticky-pull-request-comment@v2
# if: github.event_name == 'pull_request'
# with:
# recreate: true
# path: code-coverage-results.md


- name: ls
if: success() || failure()
run: |
ls -l;

# - name: Adding markdown
# run: |
# cat $(ls *.md | tail -1) >> $GITHUB_STEP_SUMMARY

- name: create status check/comment for code coverage results
id: jest_coverage_check
uses: im-open/process-code-coverage-summary@v2.3.0
with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ github.token }}
summary-file: code-coverage-results.md
create-pr-comment: true
update-comment-if-one-exists: true
update-comment-key: "${{ env.GITHUB-JOB }}_${{ env.GITHUB-ACTION }}"

- name: Upload Coverage Summary
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: code-coverage-results-3.12
path: code-coverage-results.md
Loading