Skip to content

Commit 7da4e6a

Browse files
committed
Use shared workflows
1 parent ea366a9 commit 7da4e6a

File tree

4 files changed

+14
-63
lines changed

4 files changed

+14
-63
lines changed

.github/markdownlint.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/markdown.yml

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -16,46 +16,9 @@ concurrency:
1616
permissions: read-all
1717

1818
jobs:
19-
lint:
20-
name: Lint markdown files
21-
runs-on: ubuntu-latest
22-
23-
steps:
24-
- name: Harden Runner
25-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
26-
with:
27-
egress-policy: audit
28-
29-
- name: Checkout Code
30-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31-
32-
- name: Register markdownlint warning matcher
33-
run: echo "::add-matcher::.github/markdownlint.json"
34-
35-
- name: Lint markdown files
36-
uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
37-
with:
38-
args: '**/*.md'
39-
config: '.github/markdownlint.jsonc'
40-
ignore: 'third_party_licenses.md'
41-
42-
- name: Remove markdownlint warning matcher
43-
if: always()
44-
run: echo "::remove-matcher owner=markdownlint::"
45-
46-
check-links:
47-
name: Check markdown links
48-
runs-on: ubuntu-latest
49-
steps:
50-
- name: Checkout devtools
51-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52-
53-
- name: Check links
54-
uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # master
55-
# Checks all Markdown files, including those in subfolders,
56-
# as the PR may involve removing referenced Markdown files.
57-
with:
58-
use-quiet-mode: 'yes'
59-
use-verbose-mode: 'yes'
60-
base-branch: ${{ github.base_ref }}
61-
config-file: '.github/markdown-link-check.jsonc'
19+
markdown-check:
20+
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/markdown-lint.yml@main
21+
with:
22+
lint-config: '.github/markdownlint.jsonc'
23+
link-check-config: '.github/markdown-link-check.jsonc'
24+
ignore-files: 'third_party_licenses.md'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
contents: write # for goreleaser/goreleaser-action to create a GitHub release
1717
steps:
1818
- name: Harden Runner
19-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
19+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
2020
with:
2121
egress-policy: audit
2222

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,13 @@ jobs:
171171
path: ./build/${{ env.program }}-testreport-*.xml
172172
retention-days: 1
173173
if-no-files-found: error
174-
174+
175+
html-test-report:
176+
needs: [ test ]
177+
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/generate-junit-to-html-report.yml@main
178+
with:
179+
report_header: cbridge
180+
175181
publish-test-results:
176182
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.workflow != 'Release' }}
177183
name: "Publish Tests Results"

0 commit comments

Comments
 (0)