forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
40 lines (35 loc) · 1.33 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 2
jobs:
build:
docker:
- image: dependabot/dependabot-core:0.1.2
working_directory: ~/dependabot-core
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ .Branch }}
- v1-dependencies-master
# Install dependencies
- run: bundle install --path vendor/bundle
- run: cd helpers/yarn && yarn install
- run: cd helpers/npm && yarn install
- run: cd helpers/php && composer install
- run: cd helpers/python && pyenv exec pip install -r requirements.txt
- run: cd helpers/elixir && mix deps.get
- save_cache:
key: v1-dependencies-{{ .Branch }}-{{ epoch }}
paths:
- ~/dependabot-core/vendor/bundle
- ~/dependabot-core/helpers/yarn/node_modules
- ~/dependabot-core/helpers/npm/node_modules
- ~/dependabot-core/helpers/php/vendor
# Run code formatting linters
- run: bundle exec rubocop
- run: cd helpers/yarn && node_modules/.bin/eslint lib test bin
- run: cd helpers/npm && node_modules/.bin/eslint lib test bin
- run: cd helpers/php && vendor/bin/php-cs-fixer fix --dry-run
# Run tests
- run: cd helpers/yarn && node_modules/.bin/jest
- run: cd helpers/npm && node_modules/.bin/jest
- run: bundle exec rspec spec