Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benallfree committed Apr 27, 2024
1 parent 7d22064 commit 615c656
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
- name: Install deps
run: pnpm i

- name: Start verdaccio
run: pnpm verdaccio:serve & sleep 5

- name: Start verdaccio
run: pnpm verdaccio:login

- name: Test ${{ matrix.app }}
run: |
pnpm plop test "gobot" --no-progress
pnpm plop test "app:${{ matrix.app }}" --no-progress
run: pnpm plop test "app:${{ matrix.app }}" --no-progress
4 changes: 0 additions & 4 deletions plop/commands/testCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ export function testCommand(plop: NodePlopAPI) {
[EnvVarNames.ReallyPublish]: `1`, // Defaults to local Verdaccio
},
}),
exec(`npm rm -g gobot`),

exec(`npm i -g gobot-${pkg.version}.tgz`),

exec('npm prefix -g'),

exec(`gobot --g-version`),

exec(`npm rm -g gobot`),
Expand Down
5 changes: 2 additions & 3 deletions plop/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { RIMRAF_SAFE_PATHS } from '../src/util/safeRimraf'
import { mkdir } from '../src/util/shell'
import { SRC_PACKAGE_ROOT } from './commands/helpers/root'
import {} from './commands/util/exec'
import { startVerdaccio } from './commands/util/startVerdaccio'

const args = process.argv.slice(2)
const argv = minimist(args)
Expand Down Expand Up @@ -52,9 +51,9 @@ async function main() {
(env) => {
Plop.execute(env, async (env, argv) => {
try {
const stop = await startVerdaccio()
// const stop = await startVerdaccio()
await run(env, undefined, false)
await stop()
// await stop()
resolve()
} catch (e) {
reject(e)
Expand Down

0 comments on commit 615c656

Please sign in to comment.