CI: Print the working directory before running the tests

The test data doesn't seem to be picked up.
This commit is contained in:
Vishesh Handa
2020-09-05 12:41:54 +02:00
parent 6b741bb4ea
commit 3bc459c73a
3 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ jobs:
- run:
name: SSH Problem
command: echo 'Host *\n StrictHostKeyChecking no' > ~/.ssh/config
- run:
name: Current Directory
command: pwd
- run:
name: Test
command: flutter test -j 1 --coverage --machine | tojunit --output junit.xml

View File

@ -8,6 +8,7 @@ import 'package:gitjournal/apis/github.dart';
void main() {
test('Parse json', () async {
print("Current Dir: ${Directory.current}");
var jsonString = File('test/apis/data/github.json').readAsStringSync();
var api = GitHub();

View File

@ -8,6 +8,7 @@ import 'package:gitjournal/apis/gitlab.dart';
void main() {
test('Parse json', () async {
print("Current Dir: ${Directory.current}");
var jsonString = File('test/apis/data/gitlab.json').readAsStringSync();
var api = GitLab();