Skip to content

FED-1885: Prop requiredness codemod #766

FED-1885: Prop requiredness codemod

FED-1885: Prop requiredness codemod #766

Workflow file for this run

name: Dart CI
on:
push:
branches:
- 'master'
- 'test_consume_*'
pull_request:
branches:
- '**'
jobs:
validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.18.7, 2.19.6 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- name: Print Dart SDK version
run: dart --version
- id: install
name: Install dependencies
run: dart pub get
- name: Validate dependencies
run: dart run dependency_validator
if: always() && steps.install.outcome == 'success'
- name: Validate formatting
run: dart run dart_dev format --check
if: always() && steps.install.outcome == 'success' && matrix.sdk == '2.18.7'
- name: Analyze project source
run: dart analyze
if: always() && steps.install.outcome == 'success'
- name: Ensure checked-in generated files are up to date
run: |
dart run build_runner build --delete-conflicting-outputs
git diff --exit-code
if: always() && steps.install.outcome == 'success' && matrix.sdk == '2.19.6'
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.18.7, 2.19.6 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- name: Print Dart SDK version
run: dart --version
- id: install
name: Install dependencies
run: dart pub get --no-precompile
- name: Run tests
run: |
echo 'Running dart pub get in test fixtures beforehand to prevent concurrent `dart pub get`s in tests from failing'
(cd test/test_fixtures/over_react_project && dart pub get)
dart test --exclude-tags=wsd
- name: Create SBOM Release Asset
uses: anchore/sbom-action@v0
# This fails if it runs more than once within a given build
if: matrix.sdk != '2.18.7'
with:
path: ./
format: cyclonedx-json