diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..c46939e --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..26d93c9 --- /dev/null +++ b/.yamllint.yaml @@ -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