-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from Workiva/FEA-317_UseGithubActions
FEA-317: Use github actions instead of travis for CI
- Loading branch information
Showing
4 changed files
with
78 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |