From 9c062df900c4e49173edf5565779e1786c12d5db Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 8 Apr 2021 09:29:09 +0300 Subject: [PATCH] Update CI config * add `FORCE_COLOR: 2` so that we get colored output * update to `actions/setup-node@v2` * fix formatting --- .github/workflows/test.js.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.js.yml b/.github/workflows/test.js.yml index 4f6ebd8..04f169a 100644 --- a/.github/workflows/test.js.yml +++ b/.github/workflows/test.js.yml @@ -5,9 +5,12 @@ name: build on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] + +env: + FORCE_COLOR: 2 jobs: build: @@ -20,13 +23,12 @@ jobs: # For now is not possible to target LTS verssions =/ check progress here https://github.com/actions/setup-node/issues/26 steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm run lint - - run: npm test - + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm run lint + - run: npm test