From 1d21d32348b0b00f27ecfbba814b29d0b7102a8e Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Fri, 8 Aug 2025 14:35:41 -0700 Subject: [PATCH 1/6] Update to use gha-dart-oss --- .github/workflows/ci.yml | 23 +++++++ .github/workflows/dart_ci.yml | 111 ---------------------------------- .github/workflows/publish.yml | 15 +++++ 3 files changed, 38 insertions(+), 111 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/dart_ci.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9eb678a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - 'master' + - 'test_consume_*' + pull_request: + branches: + - '**' + +jobs: + build: + uses: Workiva/gha-dart-oss/.github/workflows/build.yaml@v0.1.11 + + checks: + uses: Workiva/gha-dart-oss/.github/workflows/checks.yaml@v0.1.11 + with: + additional-checks: | + no_entrypoint_imports + + unit-tests: + uses: Workiva/gha-dart-oss/.github/workflows/test-unit.yaml@v0.1.11 diff --git a/.github/workflows/dart_ci.yml b/.github/workflows/dart_ci.yml deleted file mode 100644 index 6954ad1..0000000 --- a/.github/workflows/dart_ci.yml +++ /dev/null @@ -1,111 +0,0 @@ -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.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: Validate dependencies - run: dart run dependency_validator - if: always() && steps.install.outcome == 'success' - - - name: Analyze project source - run: dart analyze - if: always() && steps.install.outcome == 'success' - - - uses: anchore/sbom-action@v0 - with: - path: ./ - format: cyclonedx-json - - test_ddc: - permissions: - id-token: write - contents: read - checks: write - 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 (DDC) - run: dart run build_runner test -- --file-reporter json:reports/${{ matrix.sdk }}/ddc/test-results.json - if: always() && steps.install.outcome == 'success' - - - name: Upload Unit Test Results - uses: actions/upload-artifact@v4 - if: ${{ steps.install.outcome == 'success' && (success() || failure()) }} # run this step even if previous step failed, but not if it was skipped - with: - name: ddc-test-results@${{ matrix.sdk }} - path: reports/${{ matrix.sdk }}/ddc/test-results.json - - test_dart2js: - permissions: - id-token: write - contents: read - checks: write - 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 (dart2js) - run: dart run build_runner test -r -- --file-reporter json:reports/${{ matrix.sdk }}/dart2js/test-results.json - if: always() && steps.install.outcome == 'success' - - - name: Upload Unit Test Results - uses: actions/upload-artifact@v4 - if: ${{ steps.install.outcome == 'success' && (success() || failure()) }} # run this step even if previous step failed, but not if it was skipped - with: - name: dart2js-test-results@${{ matrix.sdk }} - path: reports/${{ matrix.sdk }}/dart2js/test-results.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..15fd588 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 From ce025ca9469d839b9115e5451ecd6c23e309ea96 Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Fri, 8 Aug 2025 14:37:21 -0700 Subject: [PATCH 2/6] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2c2ccc..cd12c38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # OverReact Test Changelog +## 3.0.3 +* Set up gha-dart-oss ([#174](https://github.com/Workiva/over_react_test/pull/174)) + ## 3.0.2 * React 18 Prep - suppress react_dom.render warnings ([#170](https://github.com/Workiva/over_react_test/pull/170)) From 741ccda47d332df2257bd67d21e2763c539df02e Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Fri, 8 Aug 2025 14:48:43 -0700 Subject: [PATCH 3/6] Turn off formatting --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eb678a..e0a2f49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: checks: uses: Workiva/gha-dart-oss/.github/workflows/checks.yaml@v0.1.11 with: + format-check: false additional-checks: | no_entrypoint_imports From 4386d5b3d96b2765d9cc0918c440989d7b9a11e3 Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Mon, 18 Aug 2025 14:05:54 -0700 Subject: [PATCH 4/6] Update release name to "Unreleased" --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd12c38..6f791a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # OverReact Test Changelog -## 3.0.3 +## Unreleased * Set up gha-dart-oss ([#174](https://github.com/Workiva/over_react_test/pull/174)) ## 3.0.2 From 093d1323a96eca797f9ad7334eda7c4388bb34db Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Tue, 19 Aug 2025 11:14:19 -0700 Subject: [PATCH 5/6] Add Testing and Checks Completed step --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0a2f49..cb2213e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,3 +22,16 @@ jobs: unit-tests: uses: Workiva/gha-dart-oss/.github/workflows/test-unit.yaml@v0.1.11 + + testing-and-checks-complete: + name: Testing and Checks Completed + needs: [ build, checks, unit-tests ] + if: ${{ !cancelled() && github.event_name == 'pull_request' || github.ref_type == 'tag' }} + runs-on: [ xs-al2023 ] + steps: + - run: | + if [ "${{ needs.checks.result }}" == "failure" ]; then + echo "Some checks have failed. Please fix the issues and try again." + exit 1 + fi + echo 'All Testing and checks have completed.' From 77cbf2c0cbf5b5b1daf6aaacc4fb0476dbaf792c Mon Sep 17 00:00:00 2001 From: Sydney Jodon Date: Tue, 19 Aug 2025 11:23:45 -0700 Subject: [PATCH 6/6] Update runner --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb2213e..153a5cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: name: Testing and Checks Completed needs: [ build, checks, unit-tests ] if: ${{ !cancelled() && github.event_name == 'pull_request' || github.ref_type == 'tag' }} - runs-on: [ xs-al2023 ] + runs-on: ubuntu-latest steps: - run: | if [ "${{ needs.checks.result }}" == "failure" ]; then