diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index cef0bcb..5496244 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -22,15 +22,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 071f69a..bf8a14b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,17 +18,17 @@ jobs: strategy: fail-fast: false matrix: - node-version: [12.x, 16.x, lts/*] + node-version: [14.x, 16.x, lts/*] react-version: [0.13, 0.14, 15, 16] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: "2" - name: Test on Node ${{ matrix.node-version }} - uses: actions/setup-node@v2.5.0 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -43,9 +43,11 @@ jobs: - run: npx testpack-cli --keep=@babel/*,create-react-class,enzyme*,jest*,react* .babelrc jest.config.js test-*.js src/*.spec.js - name: Upload test coverage report to Codecov - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v4.5.0 with: - fail_ci_if_error: false + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Run Snyk to check for vulnerabilities if: ${{ github.actor != 'dependabot[bot]' }} diff --git a/README.md b/README.md index ea73b1f..a5c507b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![npm package](https://badge.fury.io/js/react-component-update.svg)](https://badge.fury.io/js/react-component-update) ![node version](https://img.shields.io/node/v/react-component-update.svg) -[![Build Status](https://travis-ci.org/wimpyprogrammer/react-component-update.svg?branch=master)](https://travis-ci.org/wimpyprogrammer/react-component-update) +![Tests](https://github.com/wimpyprogrammer/react-component-update/actions/workflows/tests.yml/badge.svg) [![codecov](https://codecov.io/gh/wimpyprogrammer/react-component-update/branch/master/graph/badge.svg)](https://codecov.io/gh/wimpyprogrammer/react-component-update) [![Known Vulnerabilities](https://snyk.io/test/github/wimpyprogrammer/react-component-update/badge.svg)](https://snyk.io/test/github/wimpyprogrammer/react-component-update) diff --git a/package.json b/package.json index dbfbd54..cfe7096 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "lib/**/!(*.spec).js" ], "engines": { - "node": ">=12" + "node": ">=14" }, "scripts": { "build": "babel src --out-dir lib --delete-dir-on-start", @@ -31,7 +31,7 @@ "@babel/core": "^7.2.2", "@babel/preset-env": "^7.2.0", "@babel/preset-react": "^7.0.0", - "babel-jest": "^27.0.1", + "babel-jest": "^29.0.1", "create-react-class": "^15.6.0", "enzyme": "^3.6.0", "enzyme-adapter-react-16": "^1.5.0", @@ -41,8 +41,8 @@ "eslint-plugin-import": "^2.25.3", "eslint-plugin-jsx-a11y": "^6.1.0", "eslint-plugin-react": "^7.27.1", - "jest": "^27.0.3", - "jest-extended": "^1.2.0", + "jest": "^29.1.2", + "jest-extended": "^4.0.0", "react": "<17", "react-dom": "<17", "react-test-renderer": "<17"