Skip to content

Commit

Permalink
Update workflow files to test uploading dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 committed Mar 7, 2020
1 parent 693ee9e commit e1e24eb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on: push
jobs:
deploy-ssh-no-branch:
name: Test deploying to a new branch
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Dummy Data
run: |
mkdir dummy
echo "foobar" > "dummy/baz"
echo "foobar" > "dummy/.bat"
- name: Setup SSH Keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand All @@ -33,13 +34,14 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }}
deploy-ssh-existing-branch:
name: Test deploying to a pre-existing branch
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Dummy Data
run: |
mkdir dummy
echo "foobar" > "dummy/baz"
echo "foobar" > "dummy/.bat"
- name: Deploy
uses: ./
env:
Expand All @@ -49,13 +51,14 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }}
deploy-ssh-existing-branch-known_hosts:
name: Test deploying to a pre-existing branch (with KNOWN_HOSTS_FILE)
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Dummy Data
run: |
mkdir dummy
echo "foobar" > "dummy/baz"
echo "foobar" > "dummy/.bat"
- name: Deploy
uses: ./
env:
Expand All @@ -66,15 +69,17 @@ jobs:
KNOWN_HOSTS_FILE: action/resources/known_hosts_github.com
deploy-ssh-twice:
name: Test deploying multiple times in one job
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Dummy Data
run: |
mkdir dummy1
echo "foobar1" > "dummy1/baz"
echo "foobar1" > "dummy1/.bat"
mkdir dummy2
echo "foobar2" > "dummy2/baz"
echo "foobar2" > "dummy2/.bat"
- name: Deploy
uses: ./
env:
Expand All @@ -98,6 +103,7 @@ jobs:
run: |
mkdir dummy
echo "foobar" > "dummy/baz"
echo "foobar" > "dummy/.bat"
- name: Deploy
uses: ./
env:
Expand Down

0 comments on commit e1e24eb

Please sign in to comment.