Make Gitea checks self-contained
This commit is contained in:
@@ -10,10 +10,13 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout without an external action
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
set -eu
|
||||||
|
git init .
|
||||||
|
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git"
|
||||||
|
git fetch --depth=1 origin "$GITHUB_SHA"
|
||||||
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
- name: Check schemas and render example
|
- name: Check schemas and render example
|
||||||
run: |
|
run: python3 scripts/check_repository.py
|
||||||
python3 -m pip install -r requirements-dev.txt
|
|
||||||
CARD_LAYOUTS_REQUIRE_JSONSCHEMA=1 python3 scripts/check_repository.py
|
|
||||||
|
|||||||
@@ -76,7 +76,13 @@ make check
|
|||||||
```
|
```
|
||||||
|
|
||||||
Walidacja względem JSON Schema jest wykonywana, gdy dostępny jest pakiet
|
Walidacja względem JSON Schema jest wykonywana, gdy dostępny jest pakiet
|
||||||
`jsonschema`; CI instaluje go z `requirements-dev.txt`.
|
`jsonschema`. Workflow Gitei pozostaje samowystarczalny i zawsze uruchamia
|
||||||
|
walidację relacji generatora; pełną walidację schematów można włączyć lokalnie:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -m pip install -r requirements-dev.txt
|
||||||
|
CARD_LAYOUTS_REQUIRE_JSONSCHEMA=1 python3 scripts/check_repository.py
|
||||||
|
```
|
||||||
|
|
||||||
Generator można też wywołać bezpośrednio dla dowolnego katalogu karty:
|
Generator można też wywołać bezpośrednio dla dowolnego katalogu karty:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user