Skip to content

Commit

Permalink
Tweak the fixture test for the pre-installed-wrangler test
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed May 2, 2024
1 parent 1dadfd3 commit 9bf6e6c
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 1,259 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,4 @@ jobs:
uses: ./
with:
workingDirectory: "./test/pre-installed-wrangler"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --dry-run
command: action-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node
"use strict";

require("../index");
16 changes: 16 additions & 0 deletions test/pre-installed-wrangler/mock_packages/wrangler/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const args = Array.from(process.argv);
const command = args.pop();
switch (command) {
case "version":
console.log(
"⛅️ wrangler 1.1.1 (update available 1.2.3)\n" +
"-------------------------------------------------------",
);
process.exit(0);
case "action-test":
console.log("Test successful.");
process.exit(0);
default:
console.error("Invalid command");
process.exit(1);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"private": true,
"name": "wrangler",
"version": "1.1.1",
"main": "index.js",
"bin": "bin/wrangler"
}
Loading

0 comments on commit 9bf6e6c

Please sign in to comment.