diff options
| author | Jules Aguillon | 2024-02-18 17:55:41 +0100 |
|---|---|---|
| committer | GitHub | 2024-02-18 17:55:41 +0100 |
| commit | dac702ad0b1332cc549aeb0c620f72cb4c4a4a1b (patch) | |
| tree | a50310392d6786118de677531c8c9796511a0375 /.github/workflows/check-layouts.yml | |
| parent | f2f6ef062785c7b360d60c8acdc6c67becbd7260 (diff) | |
| download | unexpected-keyboard-dac702ad0b1332cc549aeb0c620f72cb4c4a4a1b.tar.gz unexpected-keyboard-dac702ad0b1332cc549aeb0c620f72cb4c4a4a1b.zip | |
CI: Improve layout and store description checks (#565)
* CI: Run 'check_layout.py'
Ensures that 'check_layout.output' is not outdated.
Also, update it.
* CI: Check new store descriptions
When a store description is added, 'python3 sync_translations.py' leaves
an untracked file that is not checked.
This makes sure that untracked store descriptions are noticed in CI.
Diffstat (limited to '.github/workflows/check-layouts.yml')
| -rw-r--r-- | .github/workflows/check-layouts.yml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/.github/workflows/check-layouts.yml b/.github/workflows/check-layouts.yml index d37af40..49d85a2 100644 --- a/.github/workflows/check-layouts.yml +++ b/.github/workflows/check-layouts.yml @@ -1,19 +1,26 @@ name: Check layouts -# Runs 'gen_layouts.py' and checks that the generated file were uptodate. -# This doesn't run 'check_layout.py'. - on: workflow_dispatch: push: pull_request: jobs: - check-layouts: + gen-layouts: + name: Generated files runs-on: ubuntu-latest steps: - name: Checkout repo uses: actions/checkout@v4 - run: python3 gen_layouts.py - - name: Check that the generated layouts.xml is uptodate, run python3 gen_layouts.py otherwise + - name: "Check that the generated 'layouts.xml' is uptodate, otherwise run 'python3 gen_layouts.py'" + run: git diff --exit-code + check-layouts: + name: check_layout.output + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - run: python3 check_layout.py + - name: "Check that the generated 'check_layout.output' is uptodate, otherwise run 'python3 check_layout.py'" run: git diff --exit-code |
