From b1493eb26b8ab0763659873f996b86ceb346f05f Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Wed, 24 Jan 2024 14:06:02 +0200 Subject: [PATCH] Unit matching order --- .github/src/check.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/src/check.js b/.github/src/check.js index 79942b0f..0338d658 100644 --- a/.github/src/check.js +++ b/.github/src/check.js @@ -25,6 +25,15 @@ const BASE = 'https://img.shields.io/badge/Self_Assessment-skills-009933'; const STYLE = `style=flat-square`; const BADGE = `[![Skills](${BASE}?${STYLE})](${LINK})`; +const UNITS = [ + 'Programming', + 'JavaScript', + 'Async', + 'NodeJS', + 'Paradigms', + 'Architecture', +]; + let exitCode = 0; const wrongFormat = (msg, file) => { @@ -246,10 +255,9 @@ const getTotal = (answered) => { const roles = await loadDir('.github/src/Roles'); console.log(caption`Match profiles`); - const units = Object.keys(skills); const todos = []; const totals = ['## Assessment totals\n']; - for (const unit of units) { + for (const unit of UNITS) { console.log(chapter` Unit: ${unit}`); const expected = roles[unit]; const answered = skills[unit];