π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π· CI workflow shows summary, and update tag comment
Alicia Sykes4ecc3572cdfa
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 984e415a..76ee0bfe 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,9 +1,10 @@-# CI checks to run when PR is opened-name: π¦ PR Check+# CI checks to run when a PR is opened, or manually via workflow_dispatch+name: π¦ CIon:pull_request:branches: ['master', 'develop']+ workflow_dispatch:permissions:contents: read@@ -53,7 +54,7 @@ jobs:name: π‘οΈ Lintruns-on: ubuntu-latestneeds: changes- if: needs.changes.outputs.src == 'true'+ if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'steps:- name: Checkout Codeuses: actions/checkout@v6@@ -74,7 +75,7 @@ jobs:name: 𦴠Typecheckruns-on: ubuntu-latestneeds: changes- if: needs.changes.outputs.src == 'true'+ if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'steps:- name: Checkout Codeuses: actions/checkout@v6@@ -108,13 +109,21 @@ jobs:run: yarn install --frozen-lockfile- name: Run Tests- run: yarn test+ run: yarn test 2>&1 | tee test-report.txt++ - name: Upload Test Report+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: test-report+ path: test-report.txt+ if-no-files-found: ignorelocales:name: π Locale Checkruns-on: ubuntu-latestneeds: changes- if: needs.changes.outputs.locales == 'true'+ if: needs.changes.outputs.locales == 'true' || github.event_name == 'workflow_dispatch'steps:- name: Checkout Codeuses: actions/checkout@v6@@ -125,13 +134,21 @@ jobs:node-version: '20'- name: Check Locales- run: yarn validate-locales+ run: yarn validate-locales 2>&1 | tee locale-report.txt++ - name: Upload Locale Report+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: locale-report+ path: locale-report.txt+ if-no-files-found: ignorespellcheck:name: βοΈ Spellcheckruns-on: ubuntu-latestneeds: changes- if: needs.changes.outputs.translations == 'true'+ if: needs.changes.outputs.translations == 'true' || github.event_name == 'workflow_dispatch'steps:- name: Checkout Codeuses: actions/checkout@v6@@ -188,7 +205,7 @@ jobs:name: π Dependency Auditruns-on: ubuntu-latestneeds: changes- if: needs.changes.outputs.lockfile == 'true'+ if: needs.changes.outputs.lockfile == 'true' && github.event_name == 'pull_request'permissions:contents: readsteps:@@ -222,7 +239,7 @@ jobs:name: π οΈ Workflow Auditruns-on: ubuntu-latestneeds: changes- if: needs.changes.outputs.workflows == 'true'+ if: needs.changes.outputs.workflows == 'true' || github.event_name == 'workflow_dispatch'steps:- name: Checkout Codeuses: actions/checkout@v6@@ -238,3 +255,75 @@ jobs:inputs: .github/workflows/advanced-security: falseannotations: true++ # Renders markdown summary of all checks at the end+ summary:+ name: π Summary+ runs-on: ubuntu-latest+ if: always()+ continue-on-error: true+ needs:+ - lint+ - typecheck+ - test+ - locales+ - spellcheck+ - build+ - docker-smoke+ - dependency-review+ - secret-scan+ - workflow-audit+ steps:+ - name: Download Reports+ uses: actions/download-artifact@v4+ continue-on-error: true+ with:+ path: reports+ merge-multiple: true++ - name: Render Summary+ env:+ NEEDS: ${{ toJSON(needs) }}+ run: |+ label() {+ case "$1" in+ lint) echo "π‘οΈ Lint" ;;+ typecheck) echo "𦴠Typecheck" ;;+ test) echo "π§ͺ Test" ;;+ locales) echo "π Locale Check" ;;+ spellcheck) echo "βοΈ Spellcheck" ;;+ build) echo "ποΈ Build" ;;+ docker-smoke) echo "π³ Docker Smoke" ;;+ dependency-review) echo "π Dependency Audit" ;;+ secret-scan) echo "π Secret Scan" ;;+ workflow-audit) echo "π οΈ Workflow Audit" ;;+ *) echo "$1" ;;+ esac+ }+ status() {+ case "$1" in+ success) echo "β Passed" ;;+ skipped) echo "βοΈ Skipped" ;;+ cancelled) echo "π« Cancelled" ;;+ failure) [ "$2" = docker-smoke ] && echo "β οΈ Warnings" || echo "β Failed" ;;+ *) echo "β $1" ;;+ esac+ }+ details() {+ [ -f "$2" ] || return 0+ printf '\n<details><summary>%s</summary>\n\n```\n' "$1" >> "$GITHUB_STEP_SUMMARY"+ cat "$2" >> "$GITHUB_STEP_SUMMARY"+ printf '\n```\n</details>\n' >> "$GITHUB_STEP_SUMMARY"+ }+ {+ echo "## CI Summary"+ echo ""+ echo "| Check | Status |"+ echo "|-------|--------|"+ } >> "$GITHUB_STEP_SUMMARY"+ for job in $(echo "$NEEDS" | jq -r 'keys[]'); do+ result=$(echo "$NEEDS" | jq -r --arg j "$job" '.[$j].result')+ echo "| $(label "$job") | $(status "$result" "$job") |" >> "$GITHUB_STEP_SUMMARY"+ done+ details "π§ͺ Test Report" reports/test-report.txt+ details "π Locale Report" reports/locale-report.txtdiff --git a/.github/workflows/tag.yml b/.github/workflows/tag.ymlindex 58902f4f..d4a46cd9 100644--- a/.github/workflows/tag.yml+++ b/.github/workflows/tag.yml@@ -276,6 +276,9 @@ jobs:const sixMonthsAgo = new Date();sixMonthsAgo.setMonth(sixMonthsAgo.getMonth() - 6);const isOld = new Date(issue.created_at) < sixMonthsAgo;+ const sevenDaysAgo = new Date();+ sevenDaysAgo.setDate(sevenDaysAgo.getDate() - 7);+ const isNew = new Date(issue.created_at) > sevenDaysAgo;const byLine = creditAuthor ? ` by @${prAuthor}` : '';const parts = [greeting,@@ -283,6 +286,10 @@ jobs:`and will be released shortly in ${version} π`,];if (isOld) parts.push(`\n\nWe're sorry this one took so long π`);+ if (isNew) {+ parts.push(`\n\nIf you're enjoying Dashy, consider ` ++ `[sponsoring us](https://github.com/sponsors/lissy93) on GitHub to help with development π`);+ }parts.push(`<!-- ${marker} -->`);const body = parts.join(' ');await github.rest.issues.createComment({@@ -337,7 +344,7 @@ jobs:VERSION="${TAG_VERSION:-$(node -p "require('./package.json').version" 2>/dev/null || echo "unknown")}"{- echo "## π Auto Version & Tag"+ echo "## Auto Version & Tag"echo ""echo "| Step | Result |"echo "|------|--------|"