Skip to content

Commit

Permalink
Disabled gpu for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyyjy committed Aug 9, 2023
1 parent 2f7e221 commit ddebdd5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/.git/*
npm-debug.log
DS_store
cypress
cypress/*
!cypress/plugins/
23 changes: 23 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

/**
* @type {Cypress.PluginConfig}
*/
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
launchOptions.args.push('--disable-gpu')
return launchOptions
})
}

0 comments on commit ddebdd5

Please sign in to comment.