mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-25 12:50:18 +00:00
refactor: update config to 2.1/test run
This commit is contained in:
parent
cad6c2e7e3
commit
60813dbd5b
1 changed files with 11 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
version: 2
|
||||
version: 2.1
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
@ -16,7 +16,7 @@ jobs:
|
|||
name: Run tests
|
||||
command: make test
|
||||
|
||||
generate_data:
|
||||
generate_data_and_trigger_pullrequest_deploy:
|
||||
machine:
|
||||
image: ubuntu-1604:201903-01 # https://circleci.com/docs/2.0/configuration-reference/#available-machine-images with Docker 18.09.3
|
||||
steps:
|
||||
|
@ -25,17 +25,17 @@ jobs:
|
|||
fingerprints:
|
||||
- "d3:5f:9d:68:ea:12:9a:42:d3:d3:e1:db:b0:6a:fc:d2"
|
||||
- run:
|
||||
name: Generate new data and open a Pull Request towards PokeAPI/api-data
|
||||
name: Generate new data, push to PokeAPI/api-data's staging branch and open a Pull Request towards PokeAPI/api-data's master branch
|
||||
command: bash -x Resources/scripts/updater.sh
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test-and-generate_data:
|
||||
test-and-generate_data_and_trigger_pullrequest_deploy:
|
||||
jobs:
|
||||
- test
|
||||
- generate_data:
|
||||
requires:
|
||||
- test
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
- test
|
||||
- generate_data_and_trigger_pullrequest_deploy:
|
||||
requires:
|
||||
- test
|
||||
# filters:
|
||||
# branches:
|
||||
# only: master
|
||||
|
|
Loading…
Reference in a new issue