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
brew tap-new: tests.yml workflow fails with casks #11507
Conversation
Running `brew test-bot --only-tap-syntax` fails on `ubuntu-latest` if any casks are added later to the tap, since casks are macOS only.
Thanks @ncruces! My thinking is fixing that |
I don't know about expectations but I can confirm that |
I feel like |
If this PR isn't the right answer (which it probably isn't), should I close it and open an issue? Feel free to do it yourselves! I don't think I understand Homebrew well enough to contribute the actual fix, but I'm available to test it. Thanks! |
Agreed.
We'd be happy to help point you in the right direction for this @ncruces if you'd be game to continue working on it? |
Please do. I anticipate the workflow for a fix should be quite different (running a forked version of Homebrew, which I've successfully avoided, so far... eh). But if I feel overwhelmed, I'll say so then. Happy to help. |
This reverts commit 20d59ef.
Running `brew audit --tap=[TAP]` fails on Linux (including GitHub Actions CI) if the tap has any caksks.
OK, so how about the new change? It seems to do what @MikeMcQuaid hinted at? Not sure how I can get GitHub CI to use my forked version, but I can already run:
On both macOS and Linux. This used to fail on Linux with the same error as GitHub Actions CI. Also did my best to run tests/style/typecheck, but it's all a first to me... didn't add any tests. |
Thanks so much for your contribution! Without people like you submitting PRs we couldn't run this project. You rock, @ncruces! |
Can confirm that this fixes CI for me. https://github.com/ncruces/homebrew-tap/pull/4/checks?check_run_id=2795274197 |
Running
brew test-bot --only-tap-syntax
fails onubuntu-latest
if any casks are added later to the tap, since casks are macOS only.See github.com/ncruces/homebrew-tap for my custom tap. I've fixed this in
main
by adding this line (which preventsbrew test-bot --only-tap-syntax
from running onubuntu-latest
, but still runs it onmacos-latest
, which should be enough to ensure correctness).The
casks-not-supported
branch reverts the change, and causes the failure.This was my best attempt for a fix, but I'm open to suggestions and doing the necessary leg work to get them through.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?