mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
add Ubuntu 20.04 (#135)
* add Ubuntu 20.04 * macOS -> macOS Catalina * rename CI files * Windows -> Windows Server 2019 * update README * update CHANGELOG
This commit is contained in:
parent
db8ead54b2
commit
01556dafe4
7 changed files with 75 additions and 22 deletions
|
@ -1,6 +1,6 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
name: macOS
|
||||
name: macOS Catalina
|
||||
|
||||
on:
|
||||
- push
|
||||
|
@ -9,7 +9,7 @@ on:
|
|||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
||||
|
@ -24,7 +24,7 @@ jobs:
|
|||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
||||
ssh-with-name:
|
||||
name: Connect to github.com with name and config
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-10.15
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
|
@ -1,6 +1,6 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
name: Ubuntu
|
||||
name: Ubuntu 18.04
|
||||
|
||||
on:
|
||||
- push
|
||||
|
@ -9,7 +9,7 @@ on:
|
|||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
||||
|
@ -24,7 +24,7 @@ jobs:
|
|||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
||||
ssh-with-name:
|
||||
name: Connect to github.com with name and config
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
45
.github/workflows/verify-on-ubuntu-2004.yml
vendored
Normal file
45
.github/workflows/verify-on-ubuntu-2004.yml
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
name: Ubuntu 20.04
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
||||
- name: Install SSH key
|
||||
uses: ./.
|
||||
with:
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
- name: print created files
|
||||
run: ls -l ~/.ssh
|
||||
- name: git clone through SSH
|
||||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
||||
ssh-with-name:
|
||||
name: Connect to github.com with name and config
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
||||
- name: Install SSH key
|
||||
uses: ./.
|
||||
with:
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
name: ssh_key_name # optional
|
||||
config: | # optional
|
||||
Host github
|
||||
Hostname github.com
|
||||
User git
|
||||
IdentityFile ~/.ssh/ssh_key_name
|
||||
- name: print created files
|
||||
run: ls -l ~/.ssh
|
||||
- name: git clone through SSH
|
||||
run: git clone github:shimataro/ssh-key-action.git tmp
|
|
@ -1,6 +1,6 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
name: Windows
|
||||
name: Windows Server 2019
|
||||
|
||||
on:
|
||||
- push
|
||||
|
@ -9,7 +9,7 @@ on:
|
|||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
runs-on: windows-latest
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
||||
|
@ -24,7 +24,7 @@ jobs:
|
|||
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
||||
ssh-with-name:
|
||||
name: Connect to github.com with name and config
|
||||
runs-on: windows-latest
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- name: Checkout source codes
|
||||
uses: actions/checkout@v2
|
Loading…
Add table
Add a link
Reference in a new issue