Skip to content

Commit

Permalink
yarn update: change -s option to --slient
Browse files Browse the repository at this point in the history
  • Loading branch information
imaksp committed Feb 15, 2024
1 parent cb76e68 commit 4bb0c00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/run-e2e-tests/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ fi

opts=($DB_OPTIONS)

yarn run -s test:generate-app "${opts[@]}" $@
yarn run -s test:e2e
yarn run --silent test:generate-app "${opts[@]}" $@
yarn run --silent test:e2e
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- name: Run lint
run: yarn run -s lint
run: yarn run --silent lint

unit_back:
name: 'unit_back (node: ${{ matrix.node }})'
Expand All @@ -58,7 +58,7 @@ jobs:

- run: yarn install --frozen-lockfile
- name: Run tests
run: yarn run -s test:unit --coverage
run: yarn run --silent test:unit --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Build
run: yarn build
- name: Run test
run: yarn run -s test:front:ce --coverage
run: yarn run --silent test:front:ce --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion packages/strapi/lib/commands/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = async function ({ build, watchAdmin, polling, browser }) {
// Don't run the build process if the admin is in watch mode
if (build && !watchAdmin && serveAdminPanel && !buildExists) {
try {
execa.shellSync('npm run -s build -- --no-optimization', {
execa.shellSync('npm run --silent build -- --no-optimization', {
stdio: 'inherit',
});
} catch (err) {
Expand Down

0 comments on commit 4bb0c00

Please sign in to comment.