From 5ea67c40bf427ceb0846eaba315609d5193fa230 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Tue, 11 Jun 2024 11:37:37 +0200 Subject: [PATCH] enable ansi colour in Github Actions for test purposes --- .github/workflows/node.js.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 24bf2b9..5b6ac72 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -19,11 +19,13 @@ 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' + env: + FORCE_COLOR: 3 # To enable testing of ansi-coloured output - run: npm install - run: npm run test