From 29e47cbe2ca4cb3bb4ff11d85ed7d93bc5174098 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Sat, 10 Dec 2022 02:03:38 +0100 Subject: [PATCH] ci: Add `yamllint` pass Signed-off-by: Christoph Heiss --- .github/workflows/build.yml | 20 +++++++++++++++----- .yamllint | 5 +++++ config.yml | 1 + themes/hacker/theme.yml | 1 + 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .yamllint diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffd7198..84d5dab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,24 @@ +--- name: Lint and build -on: - push: - branches: - - main - - dev +on: push # yamllint disable-line rule:truthy jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - run: pip install yamllint + - run: yamllint --strict . + docker-image: runs-on: ubuntu-latest + needs: lint + timeout-minutes: 5 steps: - uses: actions/checkout@v3 - uses: docker/setup-buildx-action@v2 diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..fa895d8 --- /dev/null +++ b/.yamllint @@ -0,0 +1,5 @@ +--- +extends: default + +yaml-files: + - '**/*.yml' diff --git a/config.yml b/config.yml index 644dcca..e8c65da 100644 --- a/config.yml +++ b/config.yml @@ -1,3 +1,4 @@ +--- baseURL: https://c8h4.io/ languageCode: en-us title: Christoph Heiss diff --git a/themes/hacker/theme.yml b/themes/hacker/theme.yml index 290c585..624e292 100644 --- a/themes/hacker/theme.yml +++ b/themes/hacker/theme.yml @@ -1,3 +1,4 @@ +--- name: Hacker homepage: https://github.com/christoph-heiss/christoph-heiss.at min_version: 0.41.0