Merge pull request 'ci: docs checks and conformance tests on Gitea' (#57) from ci/gitea-lint-workflow into main
This commit was merged in pull request #57.
This commit is contained in:
2 files changed
+38
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Gitea CI for the standards repository. The .github workflows are the reusable
|
||||
# GitHub gates this repository publishes; Gitea does not run them.
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
docs:
|
||||
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/lint.yaml@v1
|
||||
with:
|
||||
markdownlint: '**/*.md'
|
||||
yamllint: |
|
||||
**/*.yml
|
||||
**/*.yaml
|
||||
# Internal links and anchors between documents (offline: deterministic). The
|
||||
# static musl build: the image's glibc is older than the gnu build needs.
|
||||
commands: |
|
||||
LYCHEE_VERSION=0.24.2
|
||||
LYCHEE_SHA256=73657a111819a30c47c08352896796f23d64e4eb2b3ed39b6d32149241566fc5
|
||||
archive=lychee-x86_64-unknown-linux-musl.tar.gz
|
||||
mkdir -p /tmp/lychee
|
||||
curl -fsSLo "/tmp/lychee/$archive" "https://github.com/lycheeverse/lychee/releases/download/lychee-v$LYCHEE_VERSION/$archive"
|
||||
(cd /tmp/lychee && echo "$LYCHEE_SHA256 $archive" | sha256sum --check --strict && tar -xzf "$archive")
|
||||
/tmp/lychee/lychee-x86_64-unknown-linux-musl/lychee --offline --include-fragments --no-progress './**/*.md'
|
||||
conformance:
|
||||
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/windows.yaml@v1
|
||||
with:
|
||||
commands: |
|
||||
pwsh -NoProfile -File ./tools/Test-RepoConformance.ps1 -SelfTest
|
||||
pwsh -NoProfile -File ./tools/Test-RepoConformance.Fuzz.ps1 -Seed 22023 -Iterations 1000
|
||||
pwsh -NoProfile -File ./tools/Test-RepoConformance.Fuzz.ps1 -Seed 99173 -Iterations 1000
|
||||
pwsh -NoProfile -File ./tools/Test-StandardsPackage.ps1
|
||||
pwsh -NoProfile -File ./tools/Test-RepoConformance.ps1 -Repository KofTwentyTwo/standards -LocalPath . -StaticOnly
|
||||
@@ -0,0 +1,6 @@
|
||||
# yamllint configuration for the standards repository: every default rule except
|
||||
# line length, which K22-CODE-08 leaves unlimited (pinned action SHAs and URLs
|
||||
# run long).
|
||||
extends: default
|
||||
rules:
|
||||
line-length: disable
|
||||
Reference in new issue
Block a user