forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: print hash and lock filename using debug log (cypress-io#226)
and add more assertions to the env example
- Loading branch information
Showing
8 changed files
with
379 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
it('has all expected env variables', () => { | ||
// environmentName is set as workflow environment variable | ||
// as a precaution we can confirm the variable was set | ||
expect(Cypress.env('environmentName'), 'environment').to.be.a( | ||
'string' | ||
) | ||
// and we can confirm its value | ||
expect( | ||
Cypress.env('environmentName'), | ||
'has environment name' | ||
'environment name is staging' | ||
).to.equal('staging') | ||
|
||
// host and port are set via action's "with: env:" parameter | ||
expect(Cypress.env()).to.deep.include({ | ||
host: 'api.dev.local', | ||
apiPort: 4222 | ||
}) | ||
expect(Cypress.env(), 'full env includes API info').to.deep.include( | ||
{ | ||
host: 'http://api.dev.local', | ||
apiPort: 4222 | ||
} | ||
) | ||
// we can confirm that host is an url | ||
expect(Cypress.env('host'), 'host is an URL').to.match( | ||
/^https?:\/\// | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = (on, config) => { | ||
console.log('in plugis file') | ||
console.log('in plugins file') | ||
console.log( | ||
'process.env.CYPRESS_environmentName', | ||
process.env.CYPRESS_environmentName | ||
) | ||
console.log('config.env', config.env) | ||
console.log('entire config.env', config.env) | ||
} |
Oops, something went wrong.