Browse Source

ci: move to pnpm

pull/926/head
dangreen 3 years ago
parent
commit
b830644b70
  1. 33
      .github/workflows/ci.yml
  2. 110
      package.json
  3. 2129
      pnpm-lock.yaml

33
.github/workflows/node.js.yml → .github/workflows/ci.yml

@ -1,29 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
name: Node.js CI
on: on:
push: push:
branches: [ master ] branches: [ master ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]
jobs: jobs:
build: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [12.x, 14.x, 16.x] node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
name: Tests (Node.js ${{ matrix.node-version }})
steps: steps:
- uses: actions/checkout@v2 - name: Checkout the repository
- name: Use Node.js ${{ matrix.node-version }} uses: actions/checkout@v2
uses: actions/setup-node@v1 - name: Install pnpm
with: uses: pnpm/action-setup@v2.0.1
node-version: ${{ matrix.node-version }} with:
- run: npm install version: 6
- run: npm test - name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test

110
package.json

@ -1,57 +1,57 @@
{ {
"name": "papaparse", "name": "papaparse",
"version": "5.3.1", "version": "5.3.1",
"description": "Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.", "description": "Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.",
"keywords": [ "keywords": [
"csv", "csv",
"parser", "parser",
"parse", "parse",
"parsing", "parsing",
"delimited", "delimited",
"text", "text",
"data", "data",
"auto-detect", "auto-detect",
"comma", "comma",
"tab", "tab",
"pipe", "pipe",
"file", "file",
"filereader", "filereader",
"stream", "stream",
"worker", "worker",
"workers", "workers",
"thread", "thread",
"threading", "threading",
"multi-threaded", "multi-threaded",
"jquery-plugin" "jquery-plugin"
], ],
"homepage": "http://papaparse.com", "homepage": "http://papaparse.com",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/mholt/PapaParse.git" "url": "https://github.com/mholt/PapaParse.git"
}, },
"author": { "author": {
"name": "Matthew Holt", "name": "Matthew Holt",
"url": "https://twitter.com/mholt6" "url": "https://twitter.com/mholt6"
}, },
"license": "MIT", "license": "MIT",
"main": "papaparse.js", "main": "papaparse.js",
"browser": "papaparse.min.js", "browser": "papaparse.min.js",
"devDependencies": { "scripts": {
"chai": "^4.2.0", "lint": "eslint --no-ignore papaparse.js Gruntfile.js .eslintrc.js 'tests/**/*.js'",
"connect": "^3.3.3", "test-browser": "node tests/test.js",
"eslint": "^4.19.1", "test-mocha-headless-chrome": "node tests/test.js --mocha-headless-chrome",
"grunt": "^1.0.2", "test-node": "mocha tests/node-tests.js tests/test-cases.js",
"grunt-contrib-uglify": "^3.3.0", "test": "pnpm lint && pnpm test-node && pnpm test-mocha-headless-chrome"
"mocha": "^5.2.0", },
"mocha-headless-chrome": "^4.0.0", "devDependencies": {
"open": "7.0.0", "chai": "^4.2.0",
"serve-static": "^1.7.1" "connect": "^3.3.3",
}, "eslint": "^4.19.1",
"scripts": { "grunt": "^1.0.2",
"lint": "eslint --no-ignore papaparse.js Gruntfile.js .eslintrc.js 'tests/**/*.js'", "grunt-contrib-uglify": "^3.3.0",
"test-browser": "node tests/test.js", "mocha": "^5.2.0",
"test-mocha-headless-chrome": "node tests/test.js --mocha-headless-chrome", "mocha-headless-chrome": "^4.0.0",
"test-node": "mocha tests/node-tests.js tests/test-cases.js", "open": "7.0.0",
"test": "npm run lint && npm run test-node && npm run test-mocha-headless-chrome" "serve-static": "^1.7.1"
} }
} }

2129
pnpm-lock.yaml

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save