From 98ff4f913f6faeda0e9423e1f0762f98f53cd0ec 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 | 21 +++++++++++++++++++++ .yamllint.yaml | 4 ++++ 2 files changed, 25 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..a5e34fd --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,21 @@ +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 + - run: pykwalify --data-file games.yaml --schema-file schema.yaml + - uses: ibiqlik/action-yamllint@v3 + with: + config_file: .yamllint.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