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

Adding workflow #185

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Adding workflow #185

wants to merge 11 commits into from

Conversation

gagoar
Copy link
Contributor

@gagoar gagoar commented Nov 17, 2020

  • Adding workflow

@gagoar gagoar marked this pull request as ready for review November 17, 2020 17:34
netlify.toml Outdated Show resolved Hide resolved
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
Copy link
Member

Choose a reason for hiding this comment

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

https://github.com/bahmutov/npm-install this provides some better cacheing

Copy link
Member

Choose a reason for hiding this comment

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

There is official cache action:
https://github.com/graphql/graphql-js/blob/cd273ad136d615b3f2f4c830bd8891c7c5590c30/.github/workflows/ci.yml#L18-L24
I think we should minimize the number of 3rd-party dependencies especially since this particular one is not very popular.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -0,0 +1,24 @@
name: Lint and Tests

on: push
Copy link
Member

Choose a reason for hiding this comment

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

It will not work on the pull requests.
Can you please copy relevant parts of https://github.com/graphql/graphql-js/blob/master/.github/workflows/ci.yml
It will simplify review and unify setups between projects.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will make the change you are asking. but it is not necessary, It will run every time we push to the branch.

as an example this is the same PR to my fork. you will see is running,

Is not running here, because the given permissions on the repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the issue here. is if I add both, GitHub have some issues and it creates duplicated runs. (https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
We end up with double runs now in my fork, which is not desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants