From 9a2824ee84e84a0bffeb77c758ef37997f85dfb7 Mon Sep 17 00:00:00 2001 From: shimataro Date: Tue, 31 Dec 2019 12:59:47 +0900 Subject: [PATCH] * Add test of Ubuntu 16.04 --- ...rify-on-linux.yml => verify-on-ubuntu.yml} | 2 +- .github/workflows/verify-on-ubuntu1604.yml | 39 +++++++++++++++++++ .github/workflows/verify.yml.bak | 1 + 3 files changed, 41 insertions(+), 1 deletion(-) rename .github/workflows/{verify-on-linux.yml => verify-on-ubuntu.yml} (98%) create mode 100644 .github/workflows/verify-on-ubuntu1604.yml diff --git a/.github/workflows/verify-on-linux.yml b/.github/workflows/verify-on-ubuntu.yml similarity index 98% rename from .github/workflows/verify-on-linux.yml rename to .github/workflows/verify-on-ubuntu.yml index 14b326d..23277b9 100644 --- a/.github/workflows/verify-on-linux.yml +++ b/.github/workflows/verify-on-ubuntu.yml @@ -1,7 +1,7 @@ # https://help.github.com/en/articles/workflow-syntax-for-github-actions on: push -name: Linux +name: Ubuntu jobs: ssh: name: Connect to github.com diff --git a/.github/workflows/verify-on-ubuntu1604.yml b/.github/workflows/verify-on-ubuntu1604.yml new file mode 100644 index 0000000..d859300 --- /dev/null +++ b/.github/workflows/verify-on-ubuntu1604.yml @@ -0,0 +1,39 @@ +# https://help.github.com/en/articles/workflow-syntax-for-github-actions + +on: push +name: Ubuntu 16.04 +jobs: + ssh: + name: Connect to github.com + runs-on: ubuntu-16.04 + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + with: + private-key: ${{ secrets.SSH_KEY }} + public-key: ${{ secrets.SSH_KEY_PUBLIC }} + known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional + - 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-16.04 + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + with: + private-key: ${{ secrets.SSH_KEY }} + public-key: ${{ secrets.SSH_KEY_PUBLIC }} + known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional + 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 diff --git a/.github/workflows/verify.yml.bak b/.github/workflows/verify.yml.bak index 666e745..3088b2c 100644 --- a/.github/workflows/verify.yml.bak +++ b/.github/workflows/verify.yml.bak @@ -11,6 +11,7 @@ jobs: os: - Windows-latest - macOS-latest + - Ubuntu-16.04 - Ubuntu-latest fail-fast: false steps: