1
0
Fork 0
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:
shimataro 2019-09-29 19:21:19 +09:00
parent 1c141cde53
commit a15af64a22
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -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