Skip to content

Commit

Permalink
ci: add initial GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Feb 3, 2024
1 parent 5a3aaa8 commit af2cd67
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: default

rules:
line-length: disable

0 comments on commit af2cd67

Please sign in to comment.