Skip to content

Commit 03c173c

Browse files
authored
🤖 Update go-workflows to v2.0.0 (#751)
## Fixes: - Open-CMSIS-Pack/workflows-and-actions-collection#72 Updates all common workflows references to the latest version.
1 parent 563f100 commit 03c173c

9 files changed

Lines changed: 51 additions & 24 deletions

File tree

‎.github/lychee.toml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# For all options, see <https://lychee.cli.rs/usage/config/>
2+
3+
# Verbose program output
4+
# Accepts log level: "error", "warn", "info", "debug", "trace"
5+
verbose = "info"
6+
7+
# Interactive progress bar while checking links.
8+
# Disabled for CI usage
9+
no_progress = true
10+
11+
# Enable link caching. This can be helpful to avoid checking the same links on
12+
# multiple runs.
13+
cache = true
14+
15+
accept = [
16+
"200"
17+
]
18+
19+
# Maximum number of allowed redirects.
20+
max_redirects = 2
21+
22+
# Maximum number of allowed retries before a link is declared dead.
23+
max_retries = 2
24+
25+
# Only test links with the given schemes
26+
# Omit to check links with any other scheme.
27+
scheme = ["http", "https", "file"]
28+
29+
# Exclude links
30+
exclude = [
31+
# Exclude links as cookies needed to be accepted
32+
'https://developer.arm.com',
33+
# Exclude flaky URL that intermittently times out in CI
34+
'https://www.gnu.org/software/make/'
35+
]
36+
37+
# Exclude paths from getting checked. The values are treated as regular expressions
38+
exclude_path = [
39+
"\\.txt$", # skip .txt extensions
40+
"\\.html$", # skip .html extensions
41+
"testdata/", # skip directories named "testdata"
42+
]

‎.github/markdown-link-check.jsonc‎

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

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ permissions:
2424

2525
jobs:
2626
build-and-verify:
27-
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v1.0.3
27+
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v2.0.0
2828
secrets:
2929
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }}
3030
with:

‎.github/workflows/markdown.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ on:
55
- '.github/workflows/markdown.yml'
66
- '.github/markdownlint.json'
77
- '.github/markdownlint.jsonc'
8+
- '.github/lychee.toml'
89
- '**/*.md'
910

1011
# Declare default permissions as read only.
1112
permissions: read-all
1213

1314
jobs:
1415
markdown-check:
15-
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/markdown-lint.yml@v1.0.3
16+
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/markdown-lint.yml@v2.0.0
1617
with:
1718
lint-config: '.github/markdownlint.jsonc'
18-
link-check-config: '.github/markdown-link-check.jsonc'
19+
link-check-config: '.github/lychee.toml'
1920
ignore-files: 'third_party_licenses.md'

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
permissions:
2020
contents: read
2121
actions: write
22-
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v1.0.3
22+
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/build-and-verify.yml@v2.0.0
2323
with:
2424
program: cpackget
2525
test-matrix: '[{"platform":"windows-2022","arch":"amd64"},{"platform":"ubuntu-24.04","arch":"amd64"},{"platform":"macos-14","arch":"amd64"},{"platform":"ubuntu-24.04","arch":"arm64"}]'

‎.github/workflows/update-workflows.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ permissions:
1111

1212
jobs:
1313
update-workflows:
14-
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/update-workflow.yml@v1.0.3
14+
uses: Open-CMSIS-Pack/workflows-and-actions-collection/.github/workflows/update-workflow.yml@v2.0.0
1515
secrets:
1616
TOKEN_ACCESS: ${{ secrets.GRASCI_WORKFLOW_UPDATE }}

‎DEVELOPING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Follow steps below to start developing for `cpackget`:
66

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

1111
2. Clone the repo:
1212
`$ git clone https://github.com/open-cmsis-pack/cpackget.git`

‎README.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[![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)
2-
[![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)
3-
[![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)
2+
[![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)
43
[![Go Report Card](https://goreportcard.com/badge/github.com/open-cmsis-pack/cpackget)](https://goreportcard.com/report/github.com/open-cmsis-pack/cpackget)
54
[![GoDoc](https://godoc.org/github.com/open-cmsis-pack/cpackget?status.svg)](https://godoc.org/github.com/open-cmsis-pack/cpackget)
65

‎makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ release: test-all $(PROG)
110110
config:
111111
@echo "Configuring local environment"
112112
@go version 2>/dev/null || echo "Need Golang: https://golang.org/doc/install"
113-
@golangci-lint version 2>/dev/null || echo "Need GolangCi-Lint: https://golangci-lint.run/usage/install/#local-installation"
113+
@golangci-lint version 2>/dev/null || echo "Need GolangCi-Lint: https://golangci-lint.run/docs/welcome/install/local/"
114114

115115
# Install pre-commit hooks
116116
cp scripts/pre-commit .git/hooks/pre-commit

0 commit comments

Comments
 (0)