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

chore(workflows): configure tests workflow #33

Closed
wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 11, 2020

This adds a workflow to run test cases again pull requests to the main branch

@ghost ghost force-pushed the feature/test-workflow branch 4 times, most recently from 43e715e to 20663ff Compare November 11, 2020 18:46
This adds a workflow to run test cases against pull requests
to the main and support branches.
@ghost ghost force-pushed the feature/test-workflow branch from 20663ff to a86846c Compare November 11, 2020 19:20
@ghost ghost marked this pull request as ready for review November 11, 2020 19:24
@ghost ghost self-requested a review as a code owner November 11, 2020 19:24
@ghost ghost linked an issue Nov 11, 2020 that may be closed by this pull request
steps:
- uses: actions/checkout@v2
- run: |
git remote set-branches --add origin main
Copy link
Contributor

Choose a reason for hiding this comment

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

I've seen other one projects do this, but I have not seen this on the checkout action for main branches across other GitHub repos. Does an error occur if it's missing?

Copy link
Author

Choose a reason for hiding this comment

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

I haven't tested without it as I stole this directly from @nellyk. @nellyk, is actions/checkout@v2 doing a shallow clone here?

Copy link
Contributor

Choose a reason for hiding this comment

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

If there was an issue with the default branch not being master before, I believe it was resolved in actions/checkout#305 and the above is no longer necessary.

Re: shallow clones actions/checkout will only grab a single commit unless you provide fetch-depth: 0 as a parameter.

Copy link
Contributor

@nellyk nellyk Jan 5, 2021

Choose a reason for hiding this comment

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

i think we added this because of commit lint and access to the history of the commits. We updated one-app to use fetch-depth:0 https://github.com/americanexpress/one-app/pull/334/files#diff-012d76a293bfa67c5d65f938b15705520eef288139f3b513cd16266e6f780a4cR14 I think that would work. We are not using this across our other repositories americanexpress/one-app#334

Both would work :-)

@github-actions
Copy link

This pull request is stale because it has been open 30 days with no activity.

@ghost ghost closed this Dec 22, 2020
@ghost ghost reopened this Dec 22, 2020
@nellyk
Copy link
Contributor

nellyk commented Jan 8, 2021

@jgolden17 please merge this before deleting travis or you can delete Travis on this PR too. I have enabled github actions for testing

@github-actions github-actions bot removed the stale-pr label Jan 9, 2021
@github-actions
Copy link

This pull request is stale because it has been open 30 days with no activity.

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2021

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot removed the stale-pr label Feb 27, 2021
@github-actions
Copy link

This pull request is stale because it has been open 30 days with no activity.

@marcusrbrown
Copy link
Contributor

Doop.

@marcusrbrown
Copy link
Contributor

@jgolden17 Was one of your registered email addresses removed? I guess the CLA Bot decided that meant you are not you. Well, are you?

Probably easiest reopen (if you need to re-sign the CLA anyway).

@github-actions github-actions bot removed the stale-pr label Apr 2, 2021
@github-actions
Copy link

github-actions bot commented May 3, 2021

This pull request is stale because it has been open 30 days with no activity.

@nellyk
Copy link
Contributor

nellyk commented Jun 17, 2021

closing this as it is superseeded by #50

@nellyk nellyk closed this Jun 17, 2021
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.

Migrate From Travis CI to GitHub Actions
3 participants