mirror of
https://github.com/axios/axios.git
synced 2026-04-11 14:21:59 +08:00
refactor: ci to not use file but rather packed dist (#7507)
This commit is contained in:
parent
63e12ecb4f
commit
0efcefe761
32
.github/workflows/run-ci.yml
vendored
32
.github/workflows/run-ci.yml
vendored
@ -36,13 +36,16 @@ jobs:
|
|||||||
run: npm run test:vitest:unit
|
run: npm run test:vitest:unit
|
||||||
- name: Run browser tests
|
- name: Run browser tests
|
||||||
run: npm run test:vitest:browser:headless
|
run: npm run test:vitest:browser:headless
|
||||||
|
- name: Pack npm tarball
|
||||||
|
run: npm pack
|
||||||
- name: Dependency Review
|
- name: Dependency Review
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
- name: Upload build artifact
|
- name: Upload npm pack artifact
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: axios
|
name: axios-tarball
|
||||||
path: dist
|
path: axios-*.tgz
|
||||||
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
cjs-smoke-tests:
|
cjs-smoke-tests:
|
||||||
@ -64,17 +67,17 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: tests/smoke/cjs/package-lock.json
|
cache-dependency-path: tests/smoke/cjs/package-lock.json
|
||||||
- name: Install dependencies
|
- name: Download npm pack artifact
|
||||||
if: matrix.node-version == 16 || matrix.node-version == 18
|
|
||||||
run: npm ci
|
|
||||||
- name: Download build artifact
|
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: axios
|
name: axios-tarball
|
||||||
path: dist
|
path: artifacts
|
||||||
- name: Install CJS smoke test dependencies
|
- name: Install CJS smoke test dependencies
|
||||||
working-directory: tests/smoke/cjs
|
working-directory: tests/smoke/cjs
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Install packed axios
|
||||||
|
working-directory: tests/smoke/cjs
|
||||||
|
run: npm install --no-save ../../../artifacts/axios-*.tgz
|
||||||
- name: Run CJS smoke tests
|
- name: Run CJS smoke tests
|
||||||
working-directory: tests/smoke/cjs
|
working-directory: tests/smoke/cjs
|
||||||
run: npm run test:smoke:cjs:mocha
|
run: npm run test:smoke:cjs:mocha
|
||||||
@ -98,16 +101,17 @@ jobs:
|
|||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: tests/smoke/esm/package-lock.json
|
cache-dependency-path: tests/smoke/esm/package-lock.json
|
||||||
- name: Install dependencies
|
- name: Download npm pack artifact
|
||||||
run: npm ci
|
|
||||||
- name: Download build artifact
|
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: axios
|
name: axios-tarball
|
||||||
path: dist
|
path: artifacts
|
||||||
- name: Install ESM smoke test dependencies
|
- name: Install ESM smoke test dependencies
|
||||||
working-directory: tests/smoke/esm
|
working-directory: tests/smoke/esm
|
||||||
run: npm install
|
run: npm install
|
||||||
|
- name: Install packed axios
|
||||||
|
working-directory: tests/smoke/esm
|
||||||
|
run: npm install --no-save ../../../artifacts/axios-*.tgz
|
||||||
- name: Run ESM smoke tests
|
- name: Run ESM smoke tests
|
||||||
working-directory: tests/smoke/esm
|
working-directory: tests/smoke/esm
|
||||||
run: npm run test:smoke:esm:vitest
|
run: npm run test:smoke:esm:vitest
|
||||||
|
|||||||
17395
tests/smoke/cjs/package-lock.json
generated
17395
tests/smoke/cjs/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,9 +9,6 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "axios team",
|
"author": "axios team",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
|
||||||
"axios": "file:../../../"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "9.2.2",
|
"mocha": "9.2.2",
|
||||||
"chai": "4.5.0"
|
"chai": "4.5.0"
|
||||||
|
|||||||
14
tests/smoke/esm/package-lock.json
generated
14
tests/smoke/esm/package-lock.json
generated
@ -8,9 +8,6 @@
|
|||||||
"name": "@axios/esm-smoke-tests",
|
"name": "@axios/esm-smoke-tests",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
|
||||||
"axios": "file:../../../"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vitest": "4.1.0"
|
"vitest": "4.1.0"
|
||||||
}
|
}
|
||||||
@ -18,6 +15,7 @@
|
|||||||
"../../..": {
|
"../../..": {
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "1.13.6",
|
"version": "1.13.6",
|
||||||
|
"extraneous": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.11",
|
"follow-redirects": "^1.15.11",
|
||||||
@ -38,19 +36,19 @@
|
|||||||
"@vitest/browser-playwright": "^4.1.0",
|
"@vitest/browser-playwright": "^4.1.0",
|
||||||
"abortcontroller-polyfill": "^1.7.8",
|
"abortcontroller-polyfill": "^1.7.8",
|
||||||
"auto-changelog": "^2.5.0",
|
"auto-changelog": "^2.5.0",
|
||||||
"body-parser": "^1.20.4",
|
"body-parser": "^2.2.2",
|
||||||
"chalk": "^5.6.2",
|
"chalk": "^5.6.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"dev-null": "^0.1.1",
|
"dev-null": "^0.1.1",
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^8.57.1",
|
||||||
"express": "^4.22.1",
|
"express": "^5.2.1",
|
||||||
"formdata-node": "^5.0.1",
|
"formdata-node": "^5.0.1",
|
||||||
"formidable": "^2.1.5",
|
"formidable": "^2.1.5",
|
||||||
"fs-extra": "^10.1.0",
|
"fs-extra": "^10.1.0",
|
||||||
"get-stream": "^3.0.0",
|
"get-stream": "^3.0.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"handlebars": "^4.7.8",
|
"handlebars": "^4.7.8",
|
||||||
"husky": "^8.0.3",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^15.2.10",
|
"lint-staged": "^15.2.10",
|
||||||
"memoizee": "^0.4.17",
|
"memoizee": "^0.4.17",
|
||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
@ -576,10 +574,6 @@
|
|||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/axios": {
|
|
||||||
"resolved": "../../..",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/chai": {
|
"node_modules/chai": {
|
||||||
"version": "6.2.2",
|
"version": "6.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",
|
||||||
|
|||||||
@ -9,9 +9,6 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "axios team",
|
"author": "axios team",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
|
||||||
"axios": "file:../../../"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vitest": "4.1.0"
|
"vitest": "4.1.0"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user