From 19b3ca11874b64e7ad35c271bb3dcfc895025bb2 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Tue, 11 Jun 2024 11:45:53 +0200 Subject: [PATCH] enable ansi colour in Github Actions for test purposes --- .github/workflows/node.js.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 24bf2b9..64e0c0d 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -19,11 +19,14 @@ jobs: node-version: [18, 20, 22] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm install - - run: npm run test + - name: Run tests + run: npm run test + env: + FORCE_COLOR: 3 # To enable testing of ansi-coloured output