Merge pull request #194 from Workiva/add_json_typedefs #201
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: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
sdk: [ 2.19.6, stable ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- id: install | |
name: Install dependencies | |
working-directory: ./w_common | |
run: dart pub get | |
- name: Validate dependencies | |
working-directory: ./w_common | |
run: dart run dependency_validator | |
if: always() && steps.install.outcome == 'success' | |
- name: Analyze project source | |
working-directory: ./w_common | |
run: dart analyze | |
if: always() && steps.install.outcome == 'success' | |
- name: Run tests | |
working-directory: ./w_common | |
run: dart test | |
if: always() && steps.install.outcome == 'success' | |
- id: install-tools | |
name: Install w_common_tools dependencies | |
working-directory: ./w_common_tools | |
run: dart pub get | |
- name: Validate w_common_tools dependencies | |
working-directory: ./w_common_tools | |
run: dart run dependency_validator | |
if: always() && steps.install-tools.outcome == 'success' | |
- name: Analyze w_common_tools source | |
working-directory: ./w_common_tools | |
run: dart analyze | |
if: always() && steps.install-tools.outcome == 'success' | |
- name: Run w_common_tools tests | |
working-directory: ./w_common_tools | |
run: dart test | |
if: always() && steps.install-tools.outcome == 'success' | |
- uses: anchore/sbom-action@v0 | |
if: ${{ matrix.sdk == '2.19.6'}} | |
with: | |
path: ./ | |
format: cyclonedx-json | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dart-lang/[email protected] | |
with: | |
sdk: 2.19.6 | |
- id: install | |
name: Install dependencies | |
working-directory: ./w_common | |
run: dart pub get | |
- name: Verify formatting | |
working-directory: ./w_common | |
run: dart format --output=none --set-exit-if-changed . | |
if: always() && steps.install.outcome == 'success' | |
- id: install-tools | |
name: Install dependencies | |
working-directory: ./w_common_tools | |
run: dart pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
working-directory: ./w_common_tools | |
if: always() && steps.install-tools.outcome == 'success' |