Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ on:
branches: [master]
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 18, 16, 14, 12, 10, 8, 6]
name: Run tests on Node.js ${{ matrix.node-version }}
node-version: [20, 18, 16]
steps:
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Run tests
run: npm test
- if: matrix.node-version == 20
name: Send coverage info to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage/cobertura-coverage.xml
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Install dependencies
run: pnpm install --shamefully-hoist
- name: Run tests
run: pnpm build
- if: matrix.node-version == 20
name: Send coverage info to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage/cobertura-coverage.xml
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@
"url": "git+https://github.com/validatorjs/validator.js.git"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.0",
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/register": "^7.23.7",
"babel-eslint": "^10.1.0",
"babel-plugin-add-module-exports": "^1.0.4",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-import": "^2.29.1",
"mocha": "^6.2.3",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.0",
"rimraf": "^3.0.0",
"rollup": "^0.47.0",
"rollup-plugin-babel": "^4.0.1",
"nyc": "^14.1.1",
"rimraf": "^3.0.2",
"rollup": "^0.47.6",
"rollup-plugin-babel": "^4.4.0",
"timezone-mock": "^1.3.6",
"uglify-js": "^3.0.19"
"uglify-js": "^3.17.4"
},
"scripts": {
"lint": "eslint src test",
Expand Down
Loading