2019-09-15 03:32:43 -04:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-01-14 04:21:11 -05:00
|
|
|
single_key_demo:
|
2019-09-15 03:32:43 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-02-13 15:02:34 -05:00
|
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
2019-09-15 03:32:43 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Setup key
|
|
|
|
uses: ./
|
|
|
|
with:
|
2020-01-14 04:21:11 -05:00
|
|
|
ssh-private-key: |
|
|
|
|
${{ secrets.DEMO_KEY }}
|
|
|
|
${{ secrets.DEMO_KEY_2 }}
|
2019-09-15 03:32:43 -04:00
|
|
|
|
2020-01-14 04:21:11 -05:00
|
|
|
multiple_keys_demo:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macOS-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Setup key
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.DEMO_KEY }}
|
2021-02-13 15:02:34 -05:00
|
|
|
|
|
|
|
docker_demo:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- run: apt update && apt install -y openssh-client
|
|
|
|
- name: Setup key
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
ssh-private-key: |
|
|
|
|
${{ secrets.DEMO_KEY }}
|
|
|
|
${{ secrets.DEMO_KEY_2 }}
|