play: test machine user

This commit is contained in:
Alessandro Pezzè 2020-04-23 13:13:43 +02:00
parent 3c1115cf0c
commit 09ff84c1b1

View file

@ -15,6 +15,23 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: make test command: make test
- add_ssh_keys:
fingerprints:
- "d3:5f:9d:68:ea:12:9a:42:d3:d3:e1:db:b0:6a:fc:d2"
- run:
name: TEST - Create test branch on api-data # TODO: move to the deploy phase TODO: rename
command: |
mkdir -p ./testpr
cd testpr
git clone https://github.com/PokeAPI/api-data.git api-data
cd api-data
git checkout -b testbranch
touch .gitkeeptestpr
git config --global user.name "pokeapi-machine-user"
git config --global user.email pokeapi.co@gmail.com
git add .
git commit -m "play: add test file"
git push -uf origin testbranch
workflows: workflows:
version: 2 version: 2