-
Notifications
You must be signed in to change notification settings - Fork 182
ci: switch from travis to github actions #439
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
Conversation
16547a3
to
7812e62
Compare
Signed-off-by: Agnes Lin <[email protected]>
b62b30a
to
243a0f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great initiative 👏🏻
I left few comments to consider, hoping to help you troubleshoot the failing CI.
test/init.js
Outdated
password: process.env.MYSQL_PASSWORD || config.password, | ||
database: process.env.MYSQL_DATABASE || 'testdb', | ||
username: process.env.MYSQL_USER || config.username || 'user', | ||
password: process.env.MYSQL_PASSWORD || config.password || 'pass', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes me wonder, are cis-jenkins
builds failing because the database on cis-jenkins is using the old values (user "test", password "test") and not providing any ENV variables to specify those values explicitly?
What if we reverted changes in this file, would it fix cis-jenkins builds while keeping local dev setup and GH Actions CI working too?
test/init.js
Outdated
global.getConfig = function(options) { | ||
const dbConf = { | ||
host: process.env.MYSQL_HOST || config.host || 'localhost', | ||
host: process.env.MYSQL_HOST || config.host || '127.0.0.1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think forcing the IPv4 localhost is a good idea and we can land this change independently on the rest 👍
MYSQL_USER: user | ||
MYSQL_PASSWORD: pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can try to use the same values we have in place now?
MYSQL_USER: user | |
MYSQL_PASSWORD: pass | |
MYSQL_USER: test | |
MYSQL_PASSWORD: test |
Thanks @bajtos ! Jenkins failed might because I was trying to get GH actions to work. I remember that I couldn't get the right version of MySQL running on Github actions. The default is MySQL 8 and I couldn't get MySQL 5.7 to work properly, and that was frustrating 😂 |
8e4ee10
to
5b20dc1
Compare
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
Signed-off-by: Agnes Lin <[email protected]>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
See #448 |
Signed-off-by: Agnes Lin [email protected]
Checklist
npm test
passes on your machine