From 82b86e23483cf79708ac50b6546517acd9579c0f Mon Sep 17 00:00:00 2001 From: Sune Simonsen Date: Thu, 2 May 2024 11:52:39 +0200 Subject: [PATCH] Trying to fix Github actions --- .github/workflows/ci.yml | 44 +++++++++++++++++++--------------------- package.json | 17 ++++------------ 2 files changed, 25 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a193a8..1effcab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,24 +1,22 @@ name: Tests -'on': + +on: push: pull_request: env: - BROWSER_STACK_ACCESS_KEY: '${{ secrets.BROWSER_STACK_ACCESS_KEY }}' - BROWSER_STACK_USERNAME: '${{ secrets.BROWSER_STACK_USERNAME }}' + BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}" + BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}" jobs: test: - runs-on: ubuntu-18.04 name: Node ${{ matrix.node }} + runs-on: ubuntu-latest strategy: matrix: - node: - - '10' - - '12' - - '14' + node-version: [10, 12, 14, 16, 18, 20] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v1 with: @@ -27,27 +25,27 @@ jobs: - run: npm test test-targets: - runs-on: ubuntu-18.04 name: ${{ matrix.targets.name }} + runs-on: ubuntu-latest strategy: matrix: targets: - - name: 'Lint' - target: 'lint' - - name: 'Documentation' - target: 'test-docs' - - name: 'Jest' - target: 'test-jest' - - name: 'Browser - IE11' - target: 'test-browser-ie11' - - name: 'Chrome Headless' - target: 'test-headless' + - name: "Lint" + target: "lint" + - name: "Documentation" + target: "test-docs" + - name: "Jest" + target: "test-jest" + - name: "Browser - IE11" + target: "test-browser-ie11" + - name: "Chrome Headless" + target: "test-headless" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: '12' + node-version: "12" - run: npm install - run: npm run ${{ matrix.targets.target }} diff --git a/package.json b/package.json index 4d5d10b..4b32724 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,7 @@ "version": "3.1.0", "description": "An Unexpected plugin to make React testing with unexpected-dom more convenient", "main": "./lib/index.js", - "files": [ - "lib", - "unexpected-reaction.js" - ], + "files": ["lib", "unexpected-reaction.js"], "scripts": { "build": "babel --out-dir lib --quiet src && rollup -c", "build-tests": "babel --out-dir build --quiet test/index.spec.js", @@ -28,13 +25,7 @@ "type": "git", "url": "https://github.com/unexpectedjs/unexpected-reaction" }, - "keywords": [ - "unexpected", - "plugin", - "react", - "testing", - "DOM" - ], + "keywords": ["unexpected", "plugin", "react", "testing", "DOM"], "author": "Sune Simonsen ", "license": "MIT", "devDependencies": { @@ -44,7 +35,7 @@ "babel-preset-env": "^1.7.0", "babel-preset-react": "^6.24.1", "babel-register": "^6.26.0", - "eslint": "^8.1.0", + "eslint": "^7.32.0", "eslint-config-prettier": "^8.2.0", "eslint-config-standard": "^16.0.0", "eslint-plugin-import": "^2.20.2", @@ -85,9 +76,9 @@ "react-dom-testing": "^1.12.0" }, "peerDependencies": { + "magicpen-prism": "^4.0.0", "react": "^15.5.4 || 16 || 17 || 18", "react-dom": "^15.5.4 || 16 || 17 || 18", - "magicpen-prism": "^4.0.0", "unexpected": "^10.40.0 || ^11.12.1 || ^12.0.0", "unexpected-dom": "^4.17.0 || ^5.0.0" }