Skip to content
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

Check input for empty directories #62

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ jobs:
with:
setup_only: true
- run: buf --version | grep $BUF_VERSION
test-empty-build:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: ./
with:
lint: false
format: false
breaking: false
push: false
archive: false
pr_comment: false
continue-on-error: true # build fails
emcfarlane marked this conversation as resolved.
Show resolved Hide resolved
test-lint:
runs-on: ubuntu-latest
needs: build
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45828,6 +45828,9 @@ async function runWorkflow(bufPath, inputs, moduleNames) {
const steps = {};
steps.build = await build(bufPath, inputs);
if (steps.build.status == Status.Failed) {
if (steps.build.stderr.match(/had no .proto files/)) {
core.info('Did you forget to add the "actions/checkout@v4" checkout step to your workflow?');
}
return steps;
}
const checks = await Promise.all([
Expand Down
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ async function runWorkflow(
const steps: Steps = {};
steps.build = await build(bufPath, inputs);
if (steps.build.status == Status.Failed) {
if (steps.build.stderr.match(/had no .proto files/)) {
core.info(
'Did you forget to add the "actions/checkout@v4" checkout step to your workflow?',
);
}
return steps;
}
const checks = await Promise.all([
Expand Down
Loading