Skip to content

Commit

Permalink
ci: add --no-interaction and fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Dec 8, 2019
1 parent 668f1a0 commit 44d115e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install
run: |
npm ci
composer install --prefer-dist --no-progress --no-suggest
composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Build
run: |
npm run build
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- name: Install
run: |
npm ci
composer install --prefer-dist --no-progress --no-suggest
- name: Build docs
run: |
./scripts/apidoc-generate.sh
Expand All @@ -40,6 +39,6 @@ jobs:
sed -i "s,{{GPG_PRIV_PASSWORD}},${{ secrets.GPG_PRIV_PASSWORD }},g" ${CWD}/scripts/sudo-bot/.env
sed -i "s,{{INSTALLATION_ID}},${{ secrets.INSTALLATION_ID }},g" ${CWD}/scripts/sudo-bot/.env
cd ${CWD}/docs/
${CWD}/docs/sudo-bot --target-branch gh-pages --env scripts/sudo-bot/.env --verbose
${CWD}/node_modules/.bin/sudo-bot --target-branch gh-pages --env scripts/sudo-bot/.env --verbose
cd ${CWD}
rm -f ${CWD}/scripts/sudo-bot/.env
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Lint files
run: composer run phpcs

Expand All @@ -58,6 +58,6 @@ jobs:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Lint files
run: composer run phpstan
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Run php tests
run: composer run test
- name: Send coverage
Expand Down
2 changes: 1 addition & 1 deletion scripts/apidoc-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
cd $(dirname $0)/../scripts
echo "Running in : $(pwd)"

composer require --no-interaction sami/sami --prefer-dist
composer require --no-interaction sami/sami --prefer-dist --no-progress --no-suggest
./vendor/bin/sami.php --no-interaction --verbose update ./sami-config.php

0 comments on commit 44d115e

Please sign in to comment.