diff --git a/.github/workflows/datapack.yml b/.github/workflows/datapack.yml index 0e86040e4..93b3a81a4 100644 --- a/.github/workflows/datapack.yml +++ b/.github/workflows/datapack.yml @@ -35,19 +35,16 @@ jobs: with: distribution: 'temurin' java-version: '17' - - name: Download server files run: | curl -o server.jar $FABRIC_SERVER mkdir mods curl -o mods/fabric-api.jar $FABRIC_API curl -o mods/packtest.jar $PACKTEST - - name: Copy packs to world run: | mkdir -p world cp -r datapacks world - - name: Run test server run: | java -Xmx2G -Dpacktest.auto -jar server.jar nogui diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index d5bc77e99..26a5eb59b 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -37,3 +37,5 @@ jobs: run: yarn start lint.scripts.eslint.check - name: Run custom lint scripts on non-datapacks, non-resourcepack files run: yarn start lint.custom.other + env: + FORCE_COLOR: 2 diff --git a/package-scripts/linting-rules/ticketize-todos.js b/package-scripts/linting-rules/ticketize-todos.js index 2d29182c7..2b4f6a73f 100644 --- a/package-scripts/linting-rules/ticketize-todos.js +++ b/package-scripts/linting-rules/ticketize-todos.js @@ -31,9 +31,10 @@ const ticketizeTodos = (file) => { const expectedTodoFormat = chalk.blueBright('TODO():'); const formattedLineNumber = chalk.bold(`line ${lineNumber}`); const formattedFullLine = chalk.red(line); + const formattedTodo = chalk.yellow(todo); let error = `invalid TODO format on ${formattedLineNumber}:`; - error += `'${todo}'. TODOs must be of the form ${expectedTodoFormat}`; + error += ` '${formattedTodo}'. TODOs must be of the form ${expectedTodoFormat}`; error += `\n\t\t full line: ${formattedFullLine}`; errors.push(error);