From bf0992e8894ceccb8de30a111c46f57bf104b962 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Fri, 5 Jun 2026 19:01:26 -0700 Subject: [PATCH] Add workflow to check practice exercises are sorted; sort by difficulty then lowercase name --- .github/workflows/sorted.yml | 16 ++++++++++++++++ config.json | 26 +++++++++++++------------- 2 files changed, 29 insertions(+), 13 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 17d3d1d..e0fad3a 100644 --- a/config.json +++ b/config.json @@ -614,29 +614,29 @@ ] }, { - "slug": "matching-brackets", - "name": "Matching Brackets", - "uuid": "5afbe74a-af64-4558-938b-d075bc4d1f61", + "slug": "luhn", + "name": "Luhn", + "uuid": "989aaedc-4836-4d75-8579-0ac177c58120", "practices": [], "prerequisites": [], "difficulty": 5, "topics": [ - "conditionals", - "looping", - "strings" + "algorithms", + "strings", + "transforming" ] }, { - "slug": "luhn", - "name": "Luhn", - "uuid": "989aaedc-4836-4d75-8579-0ac177c58120", + "slug": "matching-brackets", + "name": "Matching Brackets", + "uuid": "5afbe74a-af64-4558-938b-d075bc4d1f61", "practices": [], "prerequisites": [], "difficulty": 5, "topics": [ - "algorithms", - "strings", - "transforming" + "conditionals", + "looping", + "strings" ] }, { @@ -716,4 +716,4 @@ "used_for/mobile", "used_for/guis" ] -} \ No newline at end of file +}