File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
src/CodeQLToolkit.Features.Test/Commands/Targets/Actions Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
- name : ⚙️ CodeQL Check Examples
1
+ name : ⚙️ CodeQL - Run Unit Tests
2
2
3
3
on :
4
4
push :
29
29
- name : Export unit test matrix
30
30
id : export-unit-test-matrix
31
31
run : |
32
- echo "matrix=$( qlt test run get-matrix --os-version ubuntu-latest)" >> $GITHUB_OUTPUT
32
+ qlt test run get-matrix --os-version ubuntu-latest
33
33
34
34
run-test-suites :
35
35
name : Run Unit Tests
Original file line number Diff line number Diff line change @@ -59,7 +59,16 @@ public override void Run()
59
59
} ;
60
60
61
61
var json = JsonSerializer . Serialize ( data ) ;
62
- Console . WriteLine ( json ) ;
62
+
63
+ var matrixVariable = $ "matrix={ json } ";
64
+
65
+ string envFile = Environment . GetEnvironmentVariable ( "GITHUB_OUTPUT" ) ;
66
+
67
+ Log < TestCommandFeature > . G ( ) . LogInformation ( $ "Writing matrix output { matrixVariable } to { envFile } ") ;
68
+
69
+ File . AppendAllText ( envFile , matrixVariable ) ;
70
+
71
+ Log < TestCommandFeature > . G ( ) . LogInformation ( $ "Done.") ;
63
72
64
73
}
65
74
}
You can’t perform that action at this time.
0 commit comments