-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
GitHub Actions for Running Unit Tests #123
GitHub Actions for Running Unit Tests #123
Conversation
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 work!! I have a couple of questions. I'm not terribly familiar with fastlane, so maybe some of these are basic haha
|
||
jobs: | ||
build: | ||
runs-on: macos-13 |
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.
Should we run on 13 or later?
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.
Yeah, I think that's possible
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 seems there are less runners for macOS 14 so Github Actions will wait for until 1 is available.
This might take up to 10 minutes so I think macOS 13 would be fine for now.
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 can't figure out how to test this locally, I thought you could still run lanes locally, but I don't have it set up right, because I get this error, which I'm guessing is it's not connected properly to Ruby, but who knows haha, so I'm going to merge it and see what happens!
Good work!
The `fastlane' command exists in these Ruby versions:
2.7.2
You might want to try |
@hanhqvu I still get that error above when I try to run that command |
That's strange. Maybe it's because I installed Ruby as a dependency for some other homebrew package. |
🤷♀️ haha I'm not sure, I'm not super familiar with fastlane, but it seems like the unit tests worked haha |
I'm not too familiar myself haha. |
@mikaelacaron Just a quick check, have you done the Fastlane setup yet? |
yup! Except haha I just read through it again, I was using homebrew to install fastlane, and now I just ran the |
Okay now I was able to run |
That's good to know! Probably a good idea to remove the homebrew installed fastlane I think, might lead to some conflict due to 2 versions of |
done! thanks for the help! Do you know if I should commit the |
Yes, please feel free to do so! I also think we should update the |
@hanhqvu you could make a new issue that does this 👍 Also update contributing, I think it's not essential, and mention that it's only needed if using fastlane for running tests, but otherwise it's fine Also add documentation in the DocC documentation about how it works could be a good place too |
@mikaelacaron I haven't done anything with DocC yet so happy to try it out! Will follow up on this after I'm done with the other issue. |
Yeah I wouldn't worry about it, I can also make a new issue too for someone else to add it |
Hey @hanhqvu @mikaelacaron , could you check if the workflow succeeds even if there is a test case error? I was trying CI/CD myself by replicating the changes in this PR and I found that the workflow succeeded but it did not run any of my tests in a demo project where I purposefully introduced a test case failure.. I also could not see any logs that printed the different test case classes as well. Maybe that has something to do with the yml configuration. I'm sorry if this is off-topic. |
@anupdsouza I think I made a mistake with the @mikaelacaron Should I make this into an issue? |
That's what I was expecting to see! @hanhqvu do you see the same behaviour on here as well in the workflow? I'm not at my desk at the moment so I can't try it out myself. |
As mentioned, I think I made a mistake with |
@hanhqvu Yes, go ahead and make a new issue and describe what's happening! |
@mikaelacaron Added #173! |
What it Does
dev
branchHow I Tested
Notes
Screenshot