Skip to content

Commit

Permalink
test: rename test/index.ts to test/upload.ts
Browse files Browse the repository at this point in the history
The upload.ts file is a general test. Don't name it index.ts
  • Loading branch information
wdzeng committed Sep 26, 2024
1 parent 30bd284 commit 769239b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"scripts": {
"build": "pnpm clean && pnpm transpile && cp action.yml dist",
"transpile": "esbuild src/index.ts --platform=node --target=node20 --minify --bundle --outfile=dist/index.cjs",
"test": "pnpm clean && pnpm transpile:test && node -r dotenv/config dist/test/index.cjs dotenv_config_path=test/.env.local",
"transpile:test": "esbuild test/index.ts --platform=node --target=node20 --minify --bundle --outfile=dist/test/index.cjs",
"test": "pnpm test:upload",
"test:upload": "pnpm clean && pnpm transpile:test:upload && node -r dotenv/config dist/test/upload.cjs dotenv_config_path=test/.env.local",
"transpile:test:upload": "esbuild test/upload.ts --platform=node --target=node20 --minify --bundle --outfile=dist/test/upload.cjs",
"lint": "eslint src --fix",
"clean": "rm -rf dist"
},
Expand All @@ -36,6 +37,7 @@
"prettier": "^3.3.3",
"tmp": "^0.2.3",
"typescript": "^5.5.4",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.0.5"
},
"pnpm": {
Expand Down
3 changes: 3 additions & 0 deletions test/index.ts → test/upload.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// This is not a unit test, but a test to upload a testing xpi file to the real Firefox Add-on
// server.

import fs from 'node:fs'

import * as core from '@actions/core'
Expand Down

0 comments on commit 769239b

Please sign in to comment.