From 4008a4813068b46aaf48ecb8d661b56ae033cf93 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Fri, 5 Jun 2026 09:37:24 -0700 Subject: [PATCH] Add workflow to check practice exercises are sorted --- .github/workflows/sorted.yml | 16 ++++++++++++++++ config.json | 16 ++++++++-------- 2 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/sorted.yml diff --git a/.github/workflows/sorted.yml b/.github/workflows/sorted.yml new file mode 100644 index 0000000..6b2af9e --- /dev/null +++ b/.github/workflows/sorted.yml @@ -0,0 +1,16 @@ +name: Exercise order + +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + call-gha-workflow: + name: Check + uses: exercism/github-actions/.github/workflows/sorted.yml@main + with: + ordering: ".difficulty, .lowercase_name" diff --git a/config.json b/config.json index 4ecaade..ab342c4 100644 --- a/config.json +++ b/config.json @@ -106,6 +106,14 @@ "prerequisites": [], "difficulty": 2 }, + { + "slug": "line-up", + "name": "Line up", + "uuid": "bb005a57-11f8-4379-b181-cfb799b04a8f", + "practices": [], + "prerequisites": [], + "difficulty": 2 + }, { "slug": "pangram", "name": "Pangram", @@ -673,14 +681,6 @@ "practices": [], "prerequisites": [], "difficulty": 8 - }, - { - "slug": "line-up", - "name": "Line up", - "uuid": "bb005a57-11f8-4379-b181-cfb799b04a8f", - "practices": [], - "prerequisites": [], - "difficulty": 3 } ] },