mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
34 lines
1010 B
YAML
34 lines
1010 B
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
# Install tools used by `_tools/format.sh`.
|
|
sudo apt-get -qq update
|
|
sudo apt-get -qq install dos2unix recode
|
|
sudo pip3 install -r requirements.txt
|
|
sudo pip3 install codespell
|
|
|
|
- name: Linter checks
|
|
run: |
|
|
bash _tools/format.sh
|
|
codespell -I _tools/codespell-ignore.txt -x _tools/codespell-ignore-lines.txt -S tutorials/i18n/locales.rst {about,community,contributing,getting_started,tutorials}/**/*.rst
|
|
|
|
# Use dummy builder to improve performance as we don't need the generated HTML in this workflow.
|
|
- name: Sphinx build
|
|
run: make SPHINXOPTS='--color -W' dummy
|