Skip to content

Comments

Initial e2e Workflow file#7194

Closed
ndukatz wants to merge 48 commits intolinode:developfrom
ndukatz:M3-4577-initial-e2e-actions-workflow
Closed

Initial e2e Workflow file#7194
ndukatz wants to merge 48 commits intolinode:developfrom
ndukatz:M3-4577-initial-e2e-actions-workflow

Conversation

@ndukatz
Copy link
Contributor

@ndukatz ndukatz commented Dec 8, 2020

Copy link
Contributor

@Jskobos Jskobos left a comment

Choose a reason for hiding this comment

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

Everything makes sense. It seems like there ought to be a better way to inject environment variables into the build without writing to an .env file, but I don't know what that would be. (Maybe sjacobs would know?)

Left a few suggestions but this is all ok.

- run: |
echo "CYPRESS_RECORD_KEY=${{ secrets.CYPRESS_RECORD_KEY }}" >> $GITHUB_ENV
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
- run: |
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it might work here if you used the oauth variable names from above, something like container: ['OAUTH_1'...]; echo MANAGER_OAUTH=$matrix['container'] to get around the if's

Copy link
Contributor Author

@ndukatz ndukatz Dec 9, 2020

Choose a reason for hiding this comment

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

I did try that previously. I actually spent quite a while on this trying different variations. It doesn't seem to handle nested variables. I tried again just in case:
https://github.com/ndukatz/manager/actions/runs/411608785
https://github.com/ndukatz/manager/actions/runs/411620499

Comment on lines 48 to 50
echo "REACT_APP_LOGIN_ROOT=https://login.linode.com" >> ./packages/manager/.env
echo "REACT_APP_API_ROOT=https://api.linode.com/v4" >> ./packages/manager/.env
echo "REACT_APP_APP_ROOT=http://localhost:3000" >> ./packages/manager/.env
Copy link
Contributor

Choose a reason for hiding this comment

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

Cloud defaults to these values, I think you don't need to put them in the .env file

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@ndukatz ndukatz Dec 21, 2020

Choose a reason for hiding this comment

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

It did not seem to work when I took them out. https://github.com/ndukatz/manager/actions/runs/431394125

@ndukatz
Copy link
Contributor Author

ndukatz commented Dec 10, 2020

Looks like test runs are failing because we hit our monthly test recordings limit without paying for it... I will have to talk to Adrien about this.
https://github.com/ndukatz/manager/actions/runs/412358483
https://dashboard.cypress.io/organizations/6ca53a8d-7e38-48dc-9346-c55a4b5de929/billing

@ndukatz ndukatz closed this Dec 29, 2020
@ndukatz ndukatz deleted the M3-4577-initial-e2e-actions-workflow branch December 29, 2020 21:27
@ndukatz ndukatz restored the M3-4577-initial-e2e-actions-workflow branch December 29, 2020 21:27
@ndukatz ndukatz reopened this Dec 29, 2020
@ndukatz
Copy link
Contributor Author

ndukatz commented Jan 20, 2021

Here is a scheduled run that worked: https://github.com/ndukatz/manager/actions/runs/498994081. Right now I have it set to run at noon so we can test today and make sure it works. There is more refactoring and such that I will add to this later, but we want to get this initial stuff in asap. It will run against the most recent develop.

@ndukatz ndukatz closed this Jan 20, 2021
@ndukatz ndukatz deleted the M3-4577-initial-e2e-actions-workflow branch January 20, 2021 16:36
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.

4 participants