Skip to content

Commit

Permalink
using example as test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbanerje committed Sep 14, 2021
1 parent d2aeb60 commit dbd0200
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---

name: CI
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Run Example
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
path: ./dotbot-template
- name: Checkout dotbot
uses: actions/checkout@v2
with:
repository: 'anishathalye/dotbot'
submodules: recursive
path: ./dotbot
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Run dotbot
run: './dotbot/bin/dotbot -d ./dotbot-template/example --plugin-dir ./dotbot-template -c ./dotbot-template/example/git.yaml'
- name: Check results
run: '[[ -f ~/.gitconfig ]] && grep "name = John Doe" ~/.gitconfig && grep "helper = cache" ~/.gitconfig'

...
2 changes: 1 addition & 1 deletion example/git.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
NAME: John Doe
EMAIL: [email protected]
GITHUB: jd
SIGNING_KEY: ????
SIGNING_KEY: DEADBEEF
SMTP_SERVER: smtp.gmail.com
SMTP_PORT: 587
SMTP_ENCRYPTION: tls
Expand Down

0 comments on commit dbd0200

Please sign in to comment.