Skip to content

Commit 2be3ff8

Browse files
Merge pull request #322 from Workiva/use-gha-dart-oss
FED-4061 Use gha-dart-oss
2 parents 664b185 + 13cd8f6 commit 2be3ff8

File tree

4 files changed

+32
-41
lines changed

4 files changed

+32
-41
lines changed
Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dart CI
1+
name: CI
22

33
on:
44
push:
@@ -10,7 +10,16 @@ on:
1010
- '**'
1111

1212
jobs:
13-
validate:
13+
checks:
14+
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
15+
with:
16+
additional-checks: |
17+
no_entrypoint_imports
18+
19+
build:
20+
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
21+
22+
test:
1423
runs-on: ubuntu-latest
1524
strategy:
1625
fail-fast: false
@@ -27,53 +36,16 @@ jobs:
2736

2837
- id: install
2938
name: Install dependencies
30-
run: dart pub get
31-
32-
- name: Validate dependencies
33-
run: dart run dependency_validator
34-
if: always() && steps.install.outcome == 'success'
35-
36-
- name: Validate formatting
37-
run: dart run dart_dev format --check
38-
if: always() && steps.install.outcome == 'success'
39-
40-
- name: Analyze project source
41-
run: dart analyze
42-
if: always() && steps.install.outcome == 'success'
39+
run: dart pub get --no-precompile
4340

4441
- name: Ensure checked-in generated files are up to date
4542
run: |
4643
dart run build_runner build --delete-conflicting-outputs
4744
git diff --exit-code
4845
if: always() && steps.install.outcome == 'success'
4946

50-
test:
51-
runs-on: ubuntu-latest
52-
strategy:
53-
fail-fast: false
54-
matrix:
55-
sdk: [ 2.19.6 ]
56-
steps:
57-
- uses: actions/checkout@v2
58-
- uses: dart-lang/[email protected]
59-
with:
60-
sdk: ${{ matrix.sdk }}
61-
62-
- name: Print Dart SDK version
63-
run: dart --version
64-
65-
- id: install
66-
name: Install dependencies
67-
run: dart pub get --no-precompile
68-
6947
- name: Run tests
7048
run: |
7149
echo 'Running dart pub get in test fixtures beforehand to prevent concurrent `dart pub get`s in tests from failing'
7250
(cd test/test_fixtures/over_react_project && dart pub get)
7351
dart test --exclude-tags=wsd
74-
75-
- name: Create SBOM Release Asset
76-
uses: anchore/sbom-action@v0
77-
with:
78-
path: ./
79-
format: cyclonedx-json

.github/workflows/publish.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
pull-requests: write
12+
13+
jobs:
14+
publish:
15+
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.37.1
2+
- Use gha-dart-oss
3+
14
## 2.37.0
25
- React 18 rollout codemod: `react_18_upgrade` to update React JS file paths from the React 17 to React 18 versions.
36
- Raise other dependency minimums: `uuid`, `web_skin_dart`

tool/dart_dev/config.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ final config = {
55
'format': FormatTool()
66
..exclude = [
77
Glob('test/test_fixtures/**'),
8-
]
8+
],
9+
'analyze': AnalyzeTool(),
910
};

0 commit comments

Comments
 (0)