mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* cross-platform verification
This commit is contained in:
parent
1c141cde53
commit
a15af64a22
1 changed files with 9 additions and 6 deletions
15
.github/workflows/verify.yml
vendored
15
.github/workflows/verify.yml
vendored
|
@ -4,8 +4,15 @@ on: "pull_request"
|
|||
name: Connection test
|
||||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
runs-on: "ubuntu-latest"
|
||||
name: Connect to github.com on ${{ matrix.platform }}
|
||||
runs-on: ${{ matrix.platform }}
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- "Windows-latest"
|
||||
- "macOS-latest"
|
||||
- "Ubuntu-latest"
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Install SSH key
|
||||
uses: shimataro/ssh-key-action@development
|
||||
|
@ -14,9 +21,5 @@ jobs:
|
|||
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
|
||||
name: 'id_rsa' # optional
|
||||
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
|
||||
- name: ls
|
||||
run: ls -la ~/.ssh/
|
||||
- name: install packages
|
||||
run: sudo apt install -y openssh-client
|
||||
- name: git clone through SSH
|
||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue