Cloud Build config: only upload JSON files in surveys directory #99
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: contextual-json-validator | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # weekly | |
permissions: | |
contents: read | |
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 pub get | |
- run: dart run | |
analyze: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: surveys/survey-validator | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | |
- run: dart pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Analyze Dart files | |
run: dart analyze --fatal-infos |