-
Create a script to mock the unit tests
-
Genenerate a new SSH key: ssh-keygen -f test_key
-
Copy the public key of our test to a deployment key: https://github.com/thepwagner/ssh-clone-test/settings/keys
-
(Optional): use a local SSH agent to verify the key actually works
-
Wrap the test script up as an actions workflow
-
Upload the private key as an Actions secret: https://github.com/thepwagner/ssh-clone-test/settings/secrets/actions
-
It works! Can we repeat the pattern using an ssh-agent?
-
We can! But it's a little gross.