Merge pull request #64 from Workiva/expose-debug-transport-url #98
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: Dart CI | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'test_consume_*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
sdk: | |
- 2.13.4 | |
- 2.19.6 | |
# Commented out until we upgrade to Dart 3 | |
# - beta | |
# - dev | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '15' | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- name: Install Node dependencies | |
run: npm install | |
- name: Install Dart dependencies | |
run: dart pub get | |
- name: Validate dependencies | |
run: dart run dependency_validator | |
- name: Check formatting | |
run: dart format --output=none --set-exit-if-changed . | |
if: ${{ matrix.sdk == 'stable' }} | |
- name: Analyze project source | |
run: dart analyze | |
- name: Run tests | |
run: dart run dart_dev test | |