refactor: ci to not use file but rather packed dist (#7507)

This commit is contained in:
Jay 2026-03-15 15:26:53 +02:00 committed by GitHub
parent 63e12ecb4f
commit 0efcefe761
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 34 additions and 17413 deletions

View File

@ -36,13 +36,16 @@ jobs:
run: npm run test:vitest:unit
- name: Run browser tests
run: npm run test:vitest:browser:headless
- name: Pack npm tarball
run: npm pack
- name: Dependency Review
uses: actions/dependency-review-action@v4
- name: Upload build artifact
- name: Upload npm pack artifact
uses: actions/upload-artifact@v7
with:
name: axios
path: dist
name: axios-tarball
path: axios-*.tgz
if-no-files-found: error
retention-days: 1
cjs-smoke-tests:
@ -64,17 +67,17 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: tests/smoke/cjs/package-lock.json
- name: Install dependencies
if: matrix.node-version == 16 || matrix.node-version == 18
run: npm ci
- name: Download build artifact
- name: Download npm pack artifact
uses: actions/download-artifact@v8
with:
name: axios
path: dist
name: axios-tarball
path: artifacts
- name: Install CJS smoke test dependencies
working-directory: tests/smoke/cjs
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
working-directory: tests/smoke/cjs
run: npm run test:smoke:cjs:mocha
@ -98,16 +101,17 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: tests/smoke/esm/package-lock.json
- name: Install dependencies
run: npm ci
- name: Download build artifact
- name: Download npm pack artifact
uses: actions/download-artifact@v8
with:
name: axios
path: dist
name: axios-tarball
path: artifacts
- name: Install ESM smoke test dependencies
working-directory: tests/smoke/esm
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
working-directory: tests/smoke/esm
run: npm run test:smoke:esm:vitest

File diff suppressed because it is too large Load Diff

View File

@ -9,9 +9,6 @@
"keywords": [],
"author": "axios team",
"license": "MIT",
"dependencies": {
"axios": "file:../../../"
},
"devDependencies": {
"mocha": "9.2.2",
"chai": "4.5.0"

View File

@ -8,9 +8,6 @@
"name": "@axios/esm-smoke-tests",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
"axios": "file:../../../"
},
"devDependencies": {
"vitest": "4.1.0"
}
@ -18,6 +15,7 @@
"../../..": {
"name": "axios",
"version": "1.13.6",
"extraneous": true,
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.11",
@ -38,19 +36,19 @@
"@vitest/browser-playwright": "^4.1.0",
"abortcontroller-polyfill": "^1.7.8",
"auto-changelog": "^2.5.0",
"body-parser": "^1.20.4",
"body-parser": "^2.2.2",
"chalk": "^5.6.2",
"cross-env": "^7.0.3",
"dev-null": "^0.1.1",
"eslint": "^8.57.1",
"express": "^4.22.1",
"express": "^5.2.1",
"formdata-node": "^5.0.1",
"formidable": "^2.1.5",
"fs-extra": "^10.1.0",
"get-stream": "^3.0.0",
"gulp": "^4.0.2",
"handlebars": "^4.7.8",
"husky": "^8.0.3",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"memoizee": "^0.4.17",
"minimist": "^1.2.8",
@ -576,10 +574,6 @@
"node": ">=12"
}
},
"node_modules/axios": {
"resolved": "../../..",
"link": true
},
"node_modules/chai": {
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",

View File

@ -9,9 +9,6 @@
"keywords": [],
"author": "axios team",
"license": "MIT",
"dependencies": {
"axios": "file:../../../"
},
"devDependencies": {
"vitest": "4.1.0"
}