Skip to content

Commit

Permalink
Chore: adds danger token to circle
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Apr 27, 2021
1 parent fab79a9 commit 82f4156
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 20 deletions.
46 changes: 26 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ parameters:
default: false

aliases:
- &set-github-read-token
name: Set Danger Token
command: |
echo 'export DANGER_GITHUB_API_TOKEN=$(echo Z2hwXzFldFVxODNZTUhCa0ZQUjk0WVV1blFXZTFCVmkzajRSOEpxRQo= | base64 --decode)' >> $BASH_ENV
source $BASH_ENV
- &danger-pr
name: Upload to coveralls
name: Run danger
command: npx danger ci -d .dangerfile.js
- &coveralls
name: Upload to coveralls
Expand Down Expand Up @@ -48,11 +53,10 @@ debug: true
jobs:
danger-pr:
<<: *defaults
environment:
DANGER_GITHUB_API_TOKEN: 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
steps:
- checkout
- run: *install
- run: *set-github-read-token
- run: *danger-pr

install:
Expand Down Expand Up @@ -99,24 +103,26 @@ jobs:

workflows:
version: 2
main:
jobs:
- install
- tests:
requires:
- install
- test-package:
requires:
- install
- deploy:
requires:
- tests
- test-package
filters:
branches:
only: master
# main:
# jobs:
# - install
# - tests:
# requires:
# - install
# - test-package:
# requires:
# - install
# - deploy:
# requires:
# - tests
# - test-package
# filters:
# branches:
# only: master
pr:
when: << pipeline.git.branch >>
# filters:
# branches:
# only: /pull\/[0-9]+/
jobs:
- danger-pr
env-tests:
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};

0 comments on commit 82f4156

Please sign in to comment.