Skip to content

Commit

Permalink
added deploy key and ssh key secret for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoverson committed Jan 24, 2023
1 parent 14a42b1 commit f3e6260
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
- name: Add SSH key
env:
TEST_SSH_KEY: ${{ secrets.TEST_SSH_KEY }}
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
echo "$TEST_SSH_KEY" > ~/.ssh/github_actions.key
chmod 600 ~/.ssh/github_actions.key
ls -alF ~/.ssh
- name: Run tests
env:
GIT_SSH_COMMAND: ssh -i ~/.ssh/github_actions.key
run: ./apex test
1 change: 0 additions & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const command = new Command()
.option(
"-b, --branch <string>",
"checkout branch before processing template",
{ default: "main" },
)
.option(
"-s, --spec <string>",
Expand Down
1 change: 0 additions & 1 deletion src/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const command = new Command()
.option(
"-b, --branch <string>",
"checkout branch before processing template",
{ default: "main" },
)
.option(
"-s, --spec <string>",
Expand Down
1 change: 1 addition & 0 deletions test/run-apex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export async function runApex(
"./apex.ts",
];
cmd.push(...args);
console.log(`Running: ${cmd.join(" ")}`);
const proc = Deno.run({
env,
stderr: "inherit",
Expand Down

0 comments on commit f3e6260

Please sign in to comment.