Clean tests, comment
This commit is contained in:
@@ -286,13 +286,6 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
jobs:
|
jobs:
|
||||||
a:
|
a:
|
||||||
outputs:
|
|
||||||
build_id: my-build-id
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo hello a
|
|
||||||
b:
|
|
||||||
needs: [a]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "hello \${{ inputs.|
|
- run: echo "hello \${{ inputs.|
|
||||||
@@ -308,13 +301,6 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
a:
|
a:
|
||||||
outputs:
|
|
||||||
build_id: my-build-id
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo hello a
|
|
||||||
b:
|
|
||||||
needs: [a]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "hello \${{ inputs.|
|
- run: echo "hello \${{ inputs.|
|
||||||
@@ -358,13 +344,6 @@ jobs:
|
|||||||
type: boolean
|
type: boolean
|
||||||
jobs:
|
jobs:
|
||||||
a:
|
a:
|
||||||
outputs:
|
|
||||||
build_id: my-build-id
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo hello a
|
|
||||||
b:
|
|
||||||
needs: [a]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "hello \${{ github.event.inputs.|
|
- run: echo "hello \${{ github.event.inputs.|
|
||||||
@@ -410,8 +389,6 @@ jobs:
|
|||||||
|
|
||||||
expect(result.map(x => x.label)).toContain("cron");
|
expect(result.map(x => x.label)).toContain("cron");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("excludes cron scheudle when no schedule", async () => {});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("steps context", () => {
|
describe("steps context", () => {
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ function getEventContext(workflowContext: WorkflowContext): ExpressionData {
|
|||||||
const schedule = events["schedule"];
|
const schedule = events["schedule"];
|
||||||
if (schedule && schedule.length > 0) {
|
if (schedule && schedule.length > 0) {
|
||||||
const default_cron = schedule[0].cron;
|
const default_cron = schedule[0].cron;
|
||||||
|
// For now, default to the first cron expression only
|
||||||
d.add("cron", new data.StringData(default_cron));
|
d.add("cron", new data.StringData(default_cron));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -826,13 +826,6 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
jobs:
|
jobs:
|
||||||
a:
|
a:
|
||||||
outputs:
|
|
||||||
build_id: my-build-id
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo hello a
|
|
||||||
b:
|
|
||||||
needs: [a]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "hello \${{ github.event.inputs.name }}"
|
- run: echo "hello \${{ github.event.inputs.name }}"
|
||||||
@@ -847,11 +840,11 @@ jobs:
|
|||||||
range: {
|
range: {
|
||||||
end: {
|
end: {
|
||||||
character: 56,
|
character: 56,
|
||||||
line: 26
|
line: 19
|
||||||
},
|
},
|
||||||
start: {
|
start: {
|
||||||
character: 23,
|
character: 23,
|
||||||
line: 26
|
line: 19
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
severity: DiagnosticSeverity.Warning
|
severity: DiagnosticSeverity.Warning
|
||||||
|
|||||||
Reference in New Issue
Block a user