mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +08:00
CI: Print the working directory before running the tests
The test data doesn't seem to be picked up.
This commit is contained in:
@ -11,6 +11,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: SSH Problem
|
name: SSH Problem
|
||||||
command: echo 'Host *\n StrictHostKeyChecking no' > ~/.ssh/config
|
command: echo 'Host *\n StrictHostKeyChecking no' > ~/.ssh/config
|
||||||
|
- run:
|
||||||
|
name: Current Directory
|
||||||
|
command: pwd
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
name: Test
|
||||||
command: flutter test -j 1 --coverage --machine | tojunit --output junit.xml
|
command: flutter test -j 1 --coverage --machine | tojunit --output junit.xml
|
||||||
|
@ -8,6 +8,7 @@ import 'package:gitjournal/apis/github.dart';
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
test('Parse json', () async {
|
test('Parse json', () async {
|
||||||
|
print("Current Dir: ${Directory.current}");
|
||||||
var jsonString = File('test/apis/data/github.json').readAsStringSync();
|
var jsonString = File('test/apis/data/github.json').readAsStringSync();
|
||||||
|
|
||||||
var api = GitHub();
|
var api = GitHub();
|
||||||
|
@ -8,6 +8,7 @@ import 'package:gitjournal/apis/gitlab.dart';
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
test('Parse json', () async {
|
test('Parse json', () async {
|
||||||
|
print("Current Dir: ${Directory.current}");
|
||||||
var jsonString = File('test/apis/data/gitlab.json').readAsStringSync();
|
var jsonString = File('test/apis/data/gitlab.json').readAsStringSync();
|
||||||
|
|
||||||
var api = GitLab();
|
var api = GitLab();
|
||||||
|
Reference in New Issue
Block a user