Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint #723

Merged
merged 4 commits into from
Oct 31, 2019
Merged

Fix lint #723

merged 4 commits into from
Oct 31, 2019

Conversation

tinovyatkin
Copy link
Contributor

@tinovyatkin tinovyatkin commented Oct 30, 2019

Prevents lint errors for cases like https://github.com/jshjohnson/Choices/runs/281570154

Also, it seems that since Cypress 3.5 it tolerates lack of record key, so, on PR originated by @jshjohnson we should start seeing beautiful Cypress decorations.

@tinovyatkin tinovyatkin changed the title run prettier Fix lint Oct 30, 2019
@jshjohnson jshjohnson added the chore Pull request that does not change core code label Oct 31, 2019
env:
CI: true
TERM: xterm-256color
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

env:
CI: true
TERM: xterm-256color
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was seeing this warning from Cypress earlier:

This project has been configured to record runs on our Dashboard.

It currently has the projectId: n7g5qp

You also provided your Record Key, but you did not pass the --record flag.

This run will not be recorded.

If you meant to have this run recorded please additionally pass this flag.

  cypress run --record

If you don't want to record these runs, you can silence this warning:

  cypress run --record false

https://on.cypress.io/recording-project-runs

See here: https://github.com/jshjohnson/Choices/commit/bd3717749fbaca4da171aa485c0f732d1dcfd66c/checks?check_suite_id=288069084

@jshjohnson jshjohnson merged commit 5051bf1 into Choices-js:master Oct 31, 2019
@tinovyatkin tinovyatkin deleted the fix-lint branch October 31, 2019 14:00
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
DEBUG: commit-info,cypress:server:record
# https://docs.cypress.io/guides/guides/continuous-integration.html#Environment-variables
COMMIT_INFO_BRANCH: ${{ github.head_ref }}
COMMIT_INFO_AUTHOR: ${{ github.event.sender.login }}
COMMIT_INFO_SHA: ${{ github.event.after }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the reason for removing these environment variables? Since merging i'm getting errors like the following from cypress: https://github.com/jshjohnson/Choices/runs/283664081#step:5:0 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jshjohnson I've added them just to help commitinfo, but it was able to find the same information in the previous run. You may revert that, it doesn't hurt to have them here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But errors seems unrelated

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i think i know where the problem is - we're not passing a value to --group in the cypress:ci script

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jshjohnson github.event.after will not be available on push to master, so, if you would like to reuse the same action you may better remove COMMIT_INFO_SHA completely here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull request that does not change core code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants