ci: babel and other updates

This commit is contained in:
Ron de las Alas 2023-10-17 10:19:45 -04:00
parent 1ad519fcc9
commit da31c474ae
3 changed files with 7182 additions and 4568 deletions

View file

@ -3,8 +3,7 @@ name: Scratch Paint CI-CD
on: on:
pull_request: # Runs whenever a pull request is created or updated pull_request: # Runs whenever a pull request is created or updated
push: # Runs whenever a commit is pushed to the repository... push: # Runs whenever a commit is pushed to the repository...
branches: [master, develop, beta, hotfix/*] # ...on any of these branches # branches: [master, develop, beta, hotfix/*] # ...on any of these branches
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
concurrency: concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
@ -39,7 +38,7 @@ jobs:
EOF EOF
- name: Install NPM Dependencies - name: Install NPM Dependencies
run: | run: |
npm ci npm install
mkdir -p ./test/results mkdir -p ./test/results
- name: Lint and Test - name: Lint and Test
run: npm run test run: npm run test

11718
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@
"url": "https://github.com/LLK/scratch-paint.git" "url": "https://github.com/LLK/scratch-paint.git"
}, },
"dependencies": { "dependencies": {
"@scratch/paper": "0.11.20200728195508", "@scratch/paper": "0.11.20221201200345",
"classnames": "2.2.5", "classnames": "2.2.5",
"keymirror": "0.1.1", "keymirror": "0.1.1",
"lodash.bindall": "4.4.0", "lodash.bindall": "4.4.0",
@ -55,10 +55,11 @@
"@commitlint/config-conventional": "17.0.3", "@commitlint/config-conventional": "17.0.3",
"autoprefixer": "9.7.4", "autoprefixer": "9.7.4",
"babel-eslint": "10.1.0", "babel-eslint": "10.1.0",
"babel-jest": "23.6.0", "babel-jest": "29.7.0",
"babel-loader": "8.2.5", "babel-loader": "8.2.5",
"babel-plugin-react-intl": "3.0.1", "babel-plugin-react-intl": "3.0.1",
"babel-plugin-transform-object-rest-spread": "6.26.0", "babel-plugin-transform-object-rest-spread": "6.26.0",
"canvas": "^2.11.2",
"css-loader": "3.4.0", "css-loader": "3.4.0",
"enzyme": "3.11.0", "enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6", "enzyme-adapter-react-16": "1.15.6",
@ -69,8 +70,7 @@
"gh-pages": "3.2.3", "gh-pages": "3.2.3",
"html-webpack-plugin": "3.2.0", "html-webpack-plugin": "3.2.0",
"husky": "8.0.1", "husky": "8.0.1",
"jest": "22.4.4", "jest": "^27.0.5",
"jest-canvas-mock": "2.3.1",
"jest-junit": "13.0.0", "jest-junit": "13.0.0",
"json": "9.0.6", "json": "9.0.6",
"lodash.defaultsdeep": "4.6.1", "lodash.defaultsdeep": "4.6.1",
@ -115,8 +115,7 @@
"jest": { "jest": {
"setupFiles": [ "setupFiles": [
"raf/polyfill", "raf/polyfill",
"<rootDir>/test/helpers/enzyme-setup.js", "<rootDir>/test/helpers/enzyme-setup.js"
"jest-canvas-mock"
], ],
"testURL": "http://localhost", "testURL": "http://localhost",
"moduleNameMapper": { "moduleNameMapper": {