diff --git a/.github/workflows/dart_ci.yml b/.github/workflows/dart_ci.yml new file mode 100644 index 0000000..c168899 --- /dev/null +++ b/.github/workflows/dart_ci.yml @@ -0,0 +1,59 @@ +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.13.4, stable, beta, dev ] + steps: + - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v0.2 + with: + sdk: ${{ matrix.sdk }} + + - id: install + name: Install dependencies + run: dart pub get + + - name: Validate dependencies + run: dart run dependency_validator + if: always() && steps.install.outcome == 'success' + + - name: Analyze project source + run: dart run dart_dev analyze + if: always() && steps.install.outcome == 'success' + + - name: Run tests with ddc + run: dart run dart_dev test + if: always() && steps.install.outcome == 'success' + + - name: Run tests with dart2js + run: dart run dart_dev test --release + if: always() && steps.install.outcome == 'success' + + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v0.2 + with: + sdk: 2.13.4 + + - id: install + name: Install dependencies + run: dart pub get + + - name: Verify formatting + run: dart run dart_dev format --check + if: always() && steps.install.outcome == 'success' \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 92c5d73..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: dart - -sudo: required -addons: - chrome: stable - -# Re-use downloaded pub packages everywhere. -cache: - directories: - - $HOME/.pub-cache - -jobs: - include: - - dart: 2.7.2 - name: "SDK: 2.7.2" - script: - - pub run dart_dev analyze - - pub run dart_dev test --release - - dart: stable - name: "SDK: stable" - script: - - pub run dart_dev format --check - - pub run dart_dev analyze - - pub run dart_dev test --release - - dart: dev - name: "SDK: dev" - script: - - pub run dart_dev analyze - - pub run dart_dev test --release diff --git a/pubspec.yaml b/pubspec.yaml index ba534b8..b7fd9b3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,9 +14,11 @@ dependencies: dev_dependencies: build_runner: '>=1.7.1 <3.0.0' - build_test: ">=0.10.9 <2.0.0" - build_web_compilers: ^2.5.1 - dart_dev: ^3.0.0 - dart_style: ^1.3.1 + build_test: ^2.1.3 + build_vm_compilers: ^1.0.11 + build_web_compilers: ^3.0.0 + dart_dev: ^3.8.5 + dart_style: ^2.1.1 + dependency_validator: ^3.0.0 over_react: ">=3.12.0 <5.0.0" test: ^1.15.7 diff --git a/skynet.yaml b/skynet.yaml new file mode 100644 index 0000000..cb05b5d --- /dev/null +++ b/skynet.yaml @@ -0,0 +1,13 @@ +name: w_flux-unit-tests +description: Unit tests +contact: 'Frontend Frameworks Architecture / #support-frontend-architecture' +image: drydock.workiva.net/workiva/dart_unit_test_image:1 +size: small +timeout: short + +run: + on-tag: true + on-pull-request: true + +scripts: + - echo "Tests run in github workflows" \ No newline at end of file