Skip to content

Commit

Permalink
Fix to path to json file
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasyishak committed Sep 13, 2023
1 parent 0d9f8b0 commit 5b04e3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/contextual-json-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ permissions:
jobs:
contextual-json-validate:
runs-on: ubuntu-latest
defaults:
run:
working-directory: surveys/survey-validator
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f

- run: dart surveys/validator/json-validator.dart
- run: dart pub get
- run: dart run

analyze:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions surveys/survey-validator/bin/survey_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import 'dart:io';
import 'package:survey_validator/survey_validator.dart' as survey_validator;

void main(List<String> arguments) {
final contextualSurveyFile =
File('${Directory.current.path}/surveys/contextual-survey-metadata.json');
final contextualSurveyFile = File('../contextual-survey-metadata.json');

survey_validator.checkJson(contextualSurveyFile);
}

0 comments on commit 5b04e3e

Please sign in to comment.