-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ci: github actions test workflow #3365
Conversation
2fedb62
to
c051a91
Compare
Codecov Report
@@ Coverage Diff @@
## master #3365 +/- ##
==========================================
- Coverage 58.02% 56.35% -1.67%
==========================================
Files 302 304 +2
Lines 21761 26833 +5072
==========================================
+ Hits 12626 15121 +2495
- Misses 8214 10792 +2578
+ Partials 921 920 -1 |
aaa7b18
to
1802073
Compare
This comment has been minimized.
This comment has been minimized.
I'm a bit confused though; why do they differ?
Is it because we create it as $ ls -la /var
lrwxr-xr-x@ 1 root wheel 11 Jul 1 2019 /var -> private/var |
So, I guess
(also wondering if I guess as part of the test, we'd have to resolve the path to the actual location, but it's still odd that one part gives the path of the symbolic linked location, and the other the actual location. |
30b3778
to
ca6b595
Compare
path, err = filepath.EvalSymlinks(path) | ||
assert.NilError(t, err) |
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.
Thanks for your review @thaJeztah, I fixed this issue by evaluating symlinks and now tests are ok on MacOS runners.
name: Prepare git | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
git config --system core.autocrlf false | ||
git config --system core.eol lf |
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.
To fix the EOL issues on Windows runners, we need to disable autocrlf. See actions/checkout#135 for more info.
There are still tests failing on the Windows runner and from what I see, it was already failing before this PR, so I guess we should fix that in a follow-up and mark the Windows GHA job as "allow-failure" or disable it in the meantime. WDYT @thaJeztah? |
8b7c464
to
18a7b4c
Compare
I have disabled tests on Windows runner in the meantime. FWIW the last time the tests were ok on AppVeyor was June 24, 2018. |
d1c4f7f
to
1bf2680
Compare
Makefile
Outdated
mkdir -p ./coverage | ||
gotestsum -- $(shell go list ./... | grep -vE '/vendor/|/e2e/') -coverprofile=coverage.txt |
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 see this was changed, but looks like the options are left the same; do we actually use the ./coverage
directory now when using this target? Or only if we use the buildx bake
approach?
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.
As discussed moved coverage output to ./build
folder.
c0a0425
to
6b4a15e
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.
LGTM
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.
LGTM 🚀
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
rebase was just |
Follow-up #3320
Switch To GitHub Actions for tests:
test
workflowand windowshost runnersappveyor
andmake.ps1
not needed anymore (cc @StefanScherer)Signed-off-by: CrazyMax crazy-max@users.noreply.github.com