Skip to content

Commit 3af97a3

Browse files
committed
update as per feedback and add sample test
1 parent 00421cb commit 3af97a3

3 files changed

Lines changed: 8 additions & 603 deletions

File tree

.github/workflows/bat.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ jobs:
3131
plan("deploy").Dependencies = "test";
3232
3333
plan.DefaultTasks = "test";
34+
end
3435
3536
function buildTask(~)
3637
f = fopen('buildlog.txt', 'a+'); fprintf(f, 'building\n'); fclose(f);
38+
end
3739
3840
function testTask(~,tests,options)
3941
arguments
@@ -46,16 +48,20 @@ jobs:
4648
fprintf(f, '%s\n', tests);
4749
fprintf(f, '%s\n', options.OutputDetail);
4850
fclose(f);
51+
end
4952
5053
function deployTask(~)
5154
f = fopen('buildlog.txt', 'a+'); fprintf(f, 'deploying\n'); fclose(f);
55+
end
5256
5357
function checkTask(~)
5458
f = fopen('buildlog.txt', 'a+'); fprintf(f, 'checking\n'); fclose(f);
59+
end
5560
5661
function errorTask(~)
5762
f = fopen('buildlog.txt', 'a+'); fprintf(f, 'erroring\n'); fclose(f);
5863
error('Error occured in errorTask');
64+
end
5965
_EOF
6066
6167
- name: Run build with default tasks
@@ -192,7 +198,6 @@ jobs:
192198
rm console.log
193199
194200
- name: Run build with premade TestTask for test summary
195-
# continue-on-error: true
196201
uses: ./
197202
with:
198203
tasks: preMadeTest

0 commit comments

Comments
 (0)