From a6b2d2726220d08a7ca2a1791d3510cca652fa29 Mon Sep 17 00:00:00 2001 From: Niko Savola Date: Wed, 23 Feb 2022 21:48:49 +0200 Subject: [PATCH] Add `karma` to dev deps. and run Node 8.x --- .github/workflows/ci.yaml | 22 ++++++++++++---------- package.json | 1 + 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c6b14ecf..a068f4fc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,25 +8,27 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [8.x, 16.x] steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 with: + node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm install --include=dev - - run: better-npm-run test + - run: npm install --include=dev --unsafe-perm + - run: npm i better-npm-run && npx better-npm-run test lint: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v2 - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: - node-version: ${{ matrix.node-version }} + node-version: 8.x cache: 'npm' - - run: npm install --include=dev + - run: npm install --include=dev --unsafe-perm - run: npm run lint \ No newline at end of file diff --git a/package.json b/package.json index b21d756c..fd9bda65 100644 --- a/package.json +++ b/package.json @@ -217,6 +217,7 @@ "eslint-plugin-react": "^6.0.0", "eslint-plugin-standard": "^2.0.0", "faker": "^3.1.0", + "karma": "^5.0.9", "nodemon": "^1.18.10", "pm2": "^3.3.1", "react-addons-test-utils": "^15.0.0",