Skip to content

Commit

Permalink
Prevent push action from trying to open web page
Browse files Browse the repository at this point in the history
  • Loading branch information
montehurd committed May 25, 2024
1 parent 43d3655 commit 2df16ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Run visual regression
shell: 'script -q -e -c "bash {0}"'
run: |
script -e -c "./pixel.js reference && ./pixel.js test"
script -e -c "./pixel.js reference && ./pixel.js test --silent"
10 changes: 8 additions & 2 deletions pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ function setupCli() {
'--reset-db',
'Reset the database after running a test group. This will destroy all data that is currently in the database.'
] );
const silentOpt = /** @type {const} */ ( [
'-s, --silent',
'Sets the runSilently parameter of processCommand.'
] );

program
.name( 'pixel.js' )
Expand All @@ -374,8 +378,9 @@ function setupCli() {
.option( ...repoBranchOpt )
.option( ...groupOpt )
.option( ...resetDbOpt )
.option( ...silentOpt )
.action( ( opts ) => {
processCommand( 'reference', opts );
processCommand( 'reference', opts, opts.silent );
} );

program
Expand All @@ -388,8 +393,9 @@ function setupCli() {
.option( ...repoBranchOpt )
.option( ...groupOpt )
.option( ...resetDbOpt )
.option( ...silentOpt )
.action( ( opts ) => {
processCommand( 'test', opts );
processCommand( 'test', opts, opts.silent );
} );

program
Expand Down

0 comments on commit 2df16ff

Please sign in to comment.