Skip to content
Merged
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
99 changes: 0 additions & 99 deletions .github/workflows/build.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: ci

on:
push:
branches: [ main ]
pull_request:
paths:
- '.github/workflows/ci.yml'
- '**/*.go'
- 'makefile'
- 'go.mod'
- 'go.sum'
- '!**/*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build-and-verify:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/[email protected]
secrets:
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
with:
program: cbuild2cmake
go-version-file: ./go.mod
enable-code-climate: true
artifact-retention-days: 7

publish-test-results:
name: "Publish Tests Results"
needs: [ build-and-verify ]
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.workflow != 'Release' }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit

- name: Download Artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
path: artifacts

- name: publish test results
uses: EnricoMi/publish-unit-test-result-action/linux@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0
with:
files: artifacts/**/cbuild2cmake-testreport-*.xml
report_individual_runs: true
2 changes: 2 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
jobs:
dependency-review:
runs-on: ubuntu-latest
if: github.repository_owner == 'Open-CMSIS-Pack'
permissions:
pull-requests: write
steps:
Expand All @@ -25,6 +26,7 @@ jobs:

- name: 'Checkout Repository'
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: 'Dependency Review'
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3
with:
Expand Down
51 changes: 6 additions & 45 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,9 @@ on:
permissions: read-all

jobs:
lint:
name: Lint markdown files
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit

- name: Checkout devtools
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Register markdownlint warning matcher
run: |
echo "::add-matcher::.github/markdownlint.json"

- name: Lint markdown files
uses: avto-dev/markdown-lint@04d43ee9191307b50935a753da3b775ab695eceb # v1.5.0
with:
args: '**/*.md'
config: '.github/markdownlint.jsonc'
ignore: 'third_party_licenses.md'

- name: Remove markdownlint warning matcher
if: always()
run: |
echo "::remove-matcher owner=markdownlint::"

check-links:
name: Check markdown links
runs-on: ubuntu-latest
steps:
- name: Checkout devtools
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # master
# Checks all Markdown files, including those in subfolders,
# as the PR may involve removing referenced Markdown files.
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
base-branch: ${{ github.base_ref }}
config-file: '.github/markdown-link-check.jsonc'

markdown-check:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/[email protected]
with:
lint-config: '.github/markdownlint.jsonc'
link-check-config: '.github/markdown-link-check.jsonc'
ignore-files: 'third_party_licenses.md'
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ on:
- "v*"

jobs:
test:
uses: Open-CMSIS-Pack/cbuild2cmake/.github/workflows/test.yml@main
build-and-verify:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/[email protected]
with:
program: cbuild2cmake
go-version-file: ./go.mod
enable-code-climate: false

goreleaser:
needs: test
needs: [ build-and-verify ]
permissions:
contents: write # for goreleaser/goreleaser-action to create a GitHub release
runs-on: ubuntu-latest
Expand Down
Loading
Loading