From 26b2d6f08440c9e64890c23589493e9440af551a Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:13:17 +0100 Subject: [PATCH] Add prettier to ci --- .github/workflows/ci.yml | 9 +++++++-- LoggerProxy.js | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ce1d0b..7937c96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# This workflow will do a clean install of node dependencies, prettify the source code, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: CI +name: Continuous Integration # Trigger on: [push, pull_request] @@ -27,6 +27,11 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Prettify code + uses: creyD/prettier_action@v4.3 + with: + prettier_options: --write . + # Install - run: yarn install diff --git a/LoggerProxy.js b/LoggerProxy.js index 517c501..435e748 100644 --- a/LoggerProxy.js +++ b/LoggerProxy.js @@ -15,6 +15,6 @@ for (const level of levels) { LoggerProxy[level] = function (message) { console[level](`MMM-OnThisDay: ${message}`); }; -} + } module.exports = LoggerProxy;