From 3b4b9aa28bbe0ff4c6cabf51bb305a8a26043076 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Fri, 2 Feb 2024 17:57:54 +0300 Subject: [PATCH] ci: add initial GH workflow --- .github/workflows/check.yaml | 19 +++++++++++++++++++ .yamllint.yaml | 4 ++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/check.yaml create mode 100644 .yamllint.yaml diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..6335e33 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,19 @@ +name: Static analysis + +on: + push: + pull_request: + +jobs: + yaml: + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' && + github.event.pull_request.head.repo.full_name != github.repository + + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - run: pip3 install pykwalify yamllint + - run: pykwalify --data-file games.yaml --schema-file schema.yaml + - run: yamllint games.yaml diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..d70a98a --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,4 @@ +extends: default + +rules: + line-length: disable