2024-01-25 03:37:28 +00:00
|
|
|
name: GameDB Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2024-02-03 16:36:25 +00:00
|
|
|
- 'data/resources/gamedb.yaml'
|
|
|
|
- 'data/resources/discdb.yaml'
|
2024-01-25 03:37:28 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- dev
|
|
|
|
paths:
|
2024-02-03 16:36:25 +00:00
|
|
|
- 'data/resources/gamedb.yaml'
|
|
|
|
- 'data/resources/discdb.yaml'
|
2024-01-25 03:37:28 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
gamedb-lint:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
timeout-minutes: 120
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4.1.1
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install Packages
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2024-02-03 16:36:25 +00:00
|
|
|
sudo apt-get -y install yamllint
|
2024-01-25 03:37:28 +00:00
|
|
|
|
|
|
|
- name: Check GameDB
|
|
|
|
shell: bash
|
2024-02-03 16:36:25 +00:00
|
|
|
run: yamllint -c extras/yamllint-config.yaml -s -f github data/resources/gamedb.yaml
|
|
|
|
|
|
|
|
- name: Check DiscDB
|
|
|
|
shell: bash
|
|
|
|
run: yamllint -c extras/yamllint-config.yaml -s -f github data/resources/discdb.yaml
|