teeworlds_network/.github/workflows/static.yml

25 lines
503 B
YAML
Raw Permalink Normal View History

2022-11-12 09:41:35 +00:00
name: Static analysis
2022-11-11 13:37:41 +00:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.1
uses: actions/setup-ruby@v1
with:
ruby-version: 3.1.x
- name: Check code
run: ./scripts/bad_code.sh
2024-02-21 02:28:02 +00:00
- name: Check docs
run: |
gem install yard
yard --fail-on-warning --no-save --no-output | grep -E '(warn|error)' && exit 1 || true