-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eric Nemchik <[email protected]>
- Loading branch information
Showing
14 changed files
with
51 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Build mkdocs and deploy to GitHub Pages | |
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build docs | ||
runs-on: ubuntu-latest | ||
|
@@ -27,7 +26,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
fetch-depth: "0" | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: 3.x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ on: [pull_request_target] | |
|
||
jobs: | ||
label: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ jobs: | |
run: | | ||
docker run --rm \ | ||
-v "${GITHUB_WORKSPACE}":/check \ | ||
-u "$(id -u):$(id -g)" \ | ||
mstruebing/editorconfig-checker | ||
markdownlint: | ||
|
@@ -20,12 +19,12 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: markdownlint | ||
run: | | ||
find "${GITHUB_WORKSPACE}" -name '*.md' -exec \ | ||
docker run --rm \ | ||
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \ | ||
markdownlint/markdownlint \ | ||
-r ~MD007,~MD013,~MD033,~MD034 \ | ||
{} + | ||
docker run --rm \ | ||
-v "${GITHUB_WORKSPACE}":/workdir \ | ||
ghcr.io/igorshubovych/markdownlint-cli \ | ||
--ignore "docs/index.md" \ | ||
--disable MD013 MD033 -- \ | ||
"**/*.md" | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
|
@@ -58,9 +57,9 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: yamllint | ||
run: | | ||
find "${GITHUB_WORKSPACE}" -name '*.yaml' -o -name '*.yml' -exec \ | ||
docker run --rm \ | ||
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \ | ||
peterdavehello/yamllint \ | ||
yamllint -d '{"extends":"default","rules":{"document-start":{"present":false},"line-length":"disable","truthy":{"check-keys":false}}}' \ | ||
{} + | ||
docker run --rm \ | ||
-v "${PWD}":/yaml \ | ||
peterdavehello/yamllint \ | ||
yamllint \ | ||
-d '{"extends":"default","rules":{"document-start":{"present":false},"line-length":"disable","truthy":{"check-keys":false}}}' \ | ||
"." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Run Tests | |
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
run: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,14 +9,18 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Validate Documentation | ||
run: | | ||
dirname -- $(grep -Rl 'deprecated: "true"' compose/) | xargs rm -rf | ||
for image in $(ls compose/.apps/); do | ||
if ! ls -d docs/apps/* | grep -q "docs/apps/${image}.md"; then | ||
echo "Missing documentation for ${image}" | ||
for APPFOLDER in compose/.apps/*; do | ||
APPNAME=$(basename "${APPFOLDER}") | ||
APPDEPRECATED=$(grep --color=never -Po "\scom\.dockstarter\.appinfo\.deprecated: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false) | ||
if [[ ${APPDEPRECATED} == true ]]; then | ||
continue | ||
fi | ||
if [[ ! -f "docs/apps/${APPNAME}.md" ]]; then | ||
echo "Missing documentation for ${APPNAME}" | ||
exit 1 | ||
fi | ||
if ! grep -q "apps/${image}.md" mkdocs.yml; then | ||
echo "Missing link for ${image}" | ||
if ! grep -q "apps/${APPNAME}.md" mkdocs.yml; then | ||
echo "Missing link for ${APPNAME}" | ||
exit 1 | ||
fi | ||
done | ||
|
@@ -27,11 +31,14 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Validate Images | ||
run: | | ||
dirname -- $(grep -Rl 'deprecated: "true"' compose/) | xargs rm -rf | ||
for image in $(grep -RPoh "image: \K.*" compose/ | sort -u | grep -v '${'); do | ||
echo "Image: ${image}" | ||
if [[ ${image} != *":"* ]]; then | ||
image="${image}:latest" | ||
for APPFOLDER in compose/.apps/*; do | ||
APPNAME=$(basename "${APPFOLDER}") | ||
APPDEPRECATED=$(grep --color=never -Po "\scom\.dockstarter\.appinfo\.deprecated: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false) | ||
if [[ ${APPDEPRECATED} == true ]]; then | ||
continue | ||
fi | ||
docker run --rm mplatform/mquery "${image}" | ||
APPIMAGE=$(grep --color=never -Po "\simage: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.x86_64.yml" | sed -E 's/([^:]+):[^:]+/\1/' | xargs || echo false) | ||
APPTAG=$(grep --color=never -Po "\scom\.dockstarter\.appvars\.${APPNAME}_tag: \K.*" "compose/.apps/${APPNAME}/${APPNAME}.labels.yml" | sed -E 's/^([^"].*[^"])$/"\1"/' | xargs || echo false) | ||
echo "Image: ${APPIMAGE}:${APPTAG}" | ||
docker run --rm mplatform/mquery "${APPIMAGE}:${APPTAG}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters