From 4dab3a609cba9d19ba7aef880d4f95860b5643a1 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 16 Mar 2026 00:00:41 +0100 Subject: CI: Check whether ComposeKeyData is uptodate (#1204) --- .github/workflows/check-generated.yml | 39 +++++++++++++++++++++++++++++++++++ .github/workflows/check-layouts.yml | 28 ------------------------- 2 files changed, 39 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/check-generated.yml delete mode 100644 .github/workflows/check-layouts.yml (limited to '.github') diff --git a/.github/workflows/check-generated.yml b/.github/workflows/check-generated.yml new file mode 100644 index 0000000..8524939 --- /dev/null +++ b/.github/workflows/check-generated.yml @@ -0,0 +1,39 @@ +name: Check generated files + +on: + workflow_dispatch: + push: + branches: + - master + pull_request: + +jobs: + gen-layouts: + name: Layout list + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - run: python3 gen_layouts.py + - name: "Run 'python3 gen_layouts.py' to update the generated files." + run: git diff --exit-code + + check-layouts: + name: Layout warnings + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - run: python3 check_layout.py + - name: "Fix your layout accordingly or run 'python3 check_layout.py' to promote the warnings" + run: git diff --exit-code + + check-compose: + name: Compose key data + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - run: python3 srcs/compose/compile.py srcs/compose/{*.json,compose} > srcs/juloo.keyboard2/ComposeKeyData.java + - name: "Run 'gradle test' to update the generated files." + run: git diff --exit-code diff --git a/.github/workflows/check-layouts.yml b/.github/workflows/check-layouts.yml deleted file mode 100644 index 76e2768..0000000 --- a/.github/workflows/check-layouts.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Check layouts - -on: - workflow_dispatch: - push: - branches: - - master - pull_request: - -jobs: - gen-layouts: - name: Generated files - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - run: python3 gen_layouts.py - - name: "Run 'python3 gen_layouts.py' to update generated files" - 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: "Fix your layout accordingly or run 'python3 check_layout.py' to promote the warnings" - run: git diff --exit-code -- cgit v1.2.3