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
42 changes: 42 additions & 0 deletions .github/lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# For all options, see <https://lychee.cli.rs/usage/config/>

# Verbose program output
# Accepts log level: "error", "warn", "info", "debug", "trace"
verbose = "info"

# Interactive progress bar while checking links.
# Disabled for CI usage
no_progress = true

# Enable link caching. This can be helpful to avoid checking the same links on
# multiple runs.
cache = true

accept = [
"200"
]

# Maximum number of allowed redirects.
max_redirects = 2

# Maximum number of allowed retries before a link is declared dead.
max_retries = 2

# Only test links with the given schemes
# Omit to check links with any other scheme.
scheme = ["http", "https", "file"]

# Exclude links
exclude = [
# Exclude links as cookies needed to be accepted
'https://developer.arm.com',
# Exclude flaky URL that intermittently times out in CI
'https://www.gnu.org/software/make/'
]

# Exclude paths from getting checked. The values are treated as regular expressions
exclude_path = [
"\\.txt$", # skip .txt extensions
"\\.html$", # skip .html extensions
"testdata/", # skip directories named "testdata"
]
15 changes: 0 additions & 15 deletions .github/markdown-link-check.jsonc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:

jobs:
build-and-verify:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v1.0.3
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v2.0.0
secrets:
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
- '.github/workflows/markdown.yml'
- '.github/markdownlint.json'
- '.github/markdownlint.jsonc'
- '.github/lychee.toml'
- '**/*.md'

# Declare default permissions as read only.
permissions: read-all

jobs:
markdown-check:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/markdown-lint.yml@v1.0.3
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/markdown-lint.yml@v2.0.0
with:
lint-config: '.github/markdownlint.jsonc'
link-check-config: '.github/markdown-link-check.jsonc'
link-check-config: '.github/lychee.toml'
ignore-files: 'third_party_licenses.md'
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
permissions:
contents: read
actions: write
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v1.0.3
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v2.0.0
with:
program: cpackget
test-matrix: '[{"platform":"windows-2022","arch":"amd64"},{"platform":"ubuntu-24.04","arch":"amd64"},{"platform":"macos-14","arch":"amd64"},{"platform":"ubuntu-24.04","arch":"arm64"}]'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ permissions:

jobs:
update-workflows:
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/update-workflow.yml@v1.0.3
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/update-workflow.yml@v2.0.0
secrets:
TOKEN_ACCESS: ${{ secrets.GRASCI_WORKFLOW_UPDATE }}
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Follow steps below to start developing for `cpackget`:

- [Install Make](https://www.gnu.org/software/make/)
- [Install Golang](https://golang.org/doc/install)
- [Install GolangCI-Lint](https://golangci-lint.run/usage/install/#local-installation)
- [Install GolangCI-Lint](https://golangci-lint.run/docs/welcome/install/local/)

2. Clone the repo:
`$ git clone https://github.com/open-cmsis-pack/cpackget.git`
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Release](https://github.com/open-cmsis-pack/cpackget/actions/workflows/release.yml/badge.svg)](https://github.com/Open-CMSIS-Pack/cpackget/actions/workflows/release.yml)
[![Build](https://github.com/open-cmsis-pack/cpackget/actions/workflows/build.yml/badge.svg)](https://github.com/open-cmsis-pack/cpackget/actions/workflows/build.yml/badge.svg)
[![Tests](https://github.com/open-cmsis-pack/cpackget/actions/workflows/test.yml/badge.svg)](https://github.com/open-cmsis-pack/cpackget/actions/workflows/test.yml/badge.svg)
[![Build And Test](https://github.com/Open-CMSIS-Pack/cpackget/actions/workflows/ci.yml/badge.svg)](https://github.com/Open-CMSIS-Pack/cpackget/actions/workflows/ci.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/open-cmsis-pack/cpackget)](https://goreportcard.com/report/github.com/open-cmsis-pack/cpackget)
[![GoDoc](https://godoc.org/github.com/open-cmsis-pack/cpackget?status.svg)](https://godoc.org/github.com/open-cmsis-pack/cpackget)

Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ release: test-all $(PROG)
config:
@echo "Configuring local environment"
@go version 2>/dev/null || echo "Need Golang: https://golang.org/doc/install"
@golangci-lint version 2>/dev/null || echo "Need GolangCi-Lint: https://golangci-lint.run/usage/install/#local-installation"
@golangci-lint version 2>/dev/null || echo "Need GolangCi-Lint: https://golangci-lint.run/docs/welcome/install/local/"

# Install pre-commit hooks
cp scripts/pre-commit .git/hooks/pre-commit
Expand Down
Loading