Skip to content

Commit

Permalink
yamllint #1809 (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong authored Sep 4, 2022
1 parent 574b92c commit 046592f
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 21 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: Build and Deploy
on: [push, pull_request, pull_request_target]
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Yamllint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: games/*.yaml originals/*.yaml schema/*.yaml
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-and-deploy:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 5 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rules:
indentation:
spaces: 2
indent-sequences: false
level: warning
6 changes: 3 additions & 3 deletions games/0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
development: active
status: playable
multiplayer:
- Competitive
- Online
- Co-op
- Competitive
- Online
- Co-op
content: commercial
langs:
- Java
Expand Down
6 changes: 3 additions & 3 deletions games/m.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@
info: A sandbox tower defense game
updated: 2020-12-23
images:
- https://mindustrygame.github.io/images/1.png
- https://mindustrygame.github.io/images/2.png
- https://mindustrygame.github.io/images/3.png
- https://mindustrygame.github.io/images/1.png
- https://mindustrygame.github.io/images/2.png
- https://mindustrygame.github.io/images/3.png

- name: MineClone 2
development: active
Expand Down
22 changes: 11 additions & 11 deletions originals/g.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,21 +258,21 @@
external:
wikipedia: Gunpoint (video game)
meta:
genres:
- Platform
- Puzzle
themes:
- Sci-Fi
genres:
- Platform
- Puzzle
themes:
- Sci-Fi

- name: Gwent
external:
wikipedia: 'Gwent: The Witcher Card Game'
platforms:
- Windows
meta:
genres:
- Turn-Based Strategy
subgenres:
- Board Game
themes:
- Fantasy
genres:
- Turn-Based Strategy
subgenres:
- Board Game
themes:
- Fantasy
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"linguist-languages": "^7.15.0"
},
"dependencies": {}
}
}
24 changes: 23 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jinja2 = "3.0.3"
python-slugify = "^5.0.2"

[tool.poetry.dev-dependencies]
yamllint = "^1.27.1"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
4 changes: 2 additions & 2 deletions schema/originals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ sequence:
platforms:
type: seq
sequence:
- include: platforms
unique: True
- include: platforms
unique: True
meta:
include: meta

Expand Down

0 comments on commit 046592f

Please sign in to comment.