Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 12 additions & 40 deletions .github/workflows/dart_ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dart CI
name: CI

on:
push:
Expand All @@ -10,7 +10,16 @@ on:
- '**'

jobs:
validate:
checks:
uses: Workiva/gha-dart-oss/.github/workflows/checks.yaml@v0.1.12
with:
additional-checks: |
no_entrypoint_imports

build:
uses: Workiva/gha-dart-oss/.github/workflows/build.yaml@v0.1.12

test:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this was renamed, I'll update Rosie before this merges to look for the renamed check

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated! Unfortunately had to add each-sub job

runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -27,53 +36,16 @@ jobs:

- 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'

- name: Analyze project source
run: dart analyze
if: always() && steps.install.outcome == 'success'
run: dart pub get --no-precompile

- 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'

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [ 2.19.6 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v0.2
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
with:
path: ./
format: cyclonedx-json
15 changes: 15 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
publish:
uses: Workiva/gha-dart-oss/.github/workflows/publish.yaml@v0.1.11
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.37.1
- Use gha-dart-oss

## 2.37.0
- React 18 rollout codemod: `react_18_upgrade` to update React JS file paths from the React 17 to React 18 versions.
- Raise other dependency minimums: `uuid`, `web_skin_dart`
Expand Down
3 changes: 2 additions & 1 deletion tool/dart_dev/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ final config = {
'format': FormatTool()
..exclude = [
Glob('test/test_fixtures/**'),
]
],
'analyze': AnalyzeTool(),
};