Upgrade some dependencies (#414) #130
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: Analyze and test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
analyze: | |
name: Analyze all apis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dart-lang/setup-dart@v1 | |
- uses: actions/checkout@v2 | |
- name: Print Dart SDK version | |
run: dart --version | |
- name: Check formatting | |
run: dart format . --set-exit-if-changed | |
- name: Analyze shared_aws_api package | |
run: dart pub get && dart analyze --fatal-infos | |
working-directory: shared_aws_api | |
- name: Analyze aws_credential_providers package | |
run: dart pub get && dart analyze --fatal-infos | |
working-directory: aws_credential_providers | |
- name: Analyze generator package | |
run: dart pub get && dart analyze --fatal-infos | |
working-directory: generator | |
- name: Generate all apis | |
run: dart bin/generate.dart generate --no-pub | |
working-directory: generator | |
- name: Analyze all_apis package | |
run: dart pub get && dart analyze --fatal-infos | |
working-directory: all_apis | |
- name: Analyze document_client package | |
run: dart pub get && dart analyze --fatal-infos | |
working-directory: document_client | |
- name: Analyze aws_client package | |
run: dart pub get && dart analyze --fatal-infos | |
working-directory: aws_client | |
- name: "check for uncommitted changes" | |
run: git diff --exit-code --stat -- . | |
test: | |
name: Test all packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Run tests on shared_aws_api | |
run: dart pub get && dart test | |
working-directory: shared_aws_api | |
- name: Run tests on generator | |
run: dart pub get && dart test | |
working-directory: generator | |
- name: Run tests on document_client | |
run: dart pub get && dart test | |
working-directory: document_client |