-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add Node.js concurrency example #99
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| set -euo pipefail | ||
|
|
||
| if (( $# > 1 )); then | ||
| echo 'usage: .buildkite/upload-examples.sh [basic|artifacts|advanced]' >&2 | ||
| echo 'usage: .buildkite/upload-examples.sh [basic|artifacts|advanced|nodejs-concurrency]' >&2 | ||
| exit 2 | ||
| fi | ||
|
|
||
|
|
@@ -40,6 +40,8 @@ steps: | |
| value: "artifacts" | ||
| - label: "Advanced delivery" | ||
| value: "advanced" | ||
| - label: "Node.js concurrency" | ||
| value: "nodejs-concurrency" | ||
|
|
||
| - label: ":pipeline: Load example workflow" | ||
| key: "example-loader" | ||
|
|
@@ -64,6 +66,9 @@ case "$example" in | |
| advanced) | ||
| workflow=".github/workflows/example-advanced.yml" | ||
| ;; | ||
| nodejs-concurrency) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking: |
||
| workflow=".github/workflows/example-nodejs-concurrency.yml" | ||
| ;; | ||
| *) | ||
| echo "unknown example: $example" >&2 | ||
| exit 2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Example - basic nodejs CI | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| POC_SUITE: basic | ||
|
|
||
| concurrency: | ||
| group: ci-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build-check-test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
|
buildsworth-bk-app[bot] marked this conversation as resolved.
|
||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocking: Enabling npm caching makes setup-node search There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still open — the repository has no |
||
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.
Blocking: Adding this fourth option currently breaks
TestExamplesPipelineSelectsOneCanonicalWorkflow, whose exact option contract still contains only the original three entries. I reproduced this withgo test ./...; please update the contract test for the new selector so the required test gate passes.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.
Still open —
go test ./...continues to fail inTestExamplesPipelineSelectsOneCanonicalWorkflowbecause its expected options omit the new selector.