-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce initial version of Dart-based site tooling (#5472)
This tooling is accessible from the root directory of the repository by calling `dart run dart_site <command> <args>`. It replaces our various scripts and will be the home of future staging and deploy commands after the migration to 11ty. To learn more about the commands available, run `dart run dart_site --help`. You can add a shortcut for `dart run dart_site` if you'd like, or I'll likely come up with a standard shortcut we can use as part of followup. I'll improve the formatting of the output and add a proper guide after the 11ty migration lands, as I expect to change some in that process. Contributes to #4163 and #5177
- Loading branch information
Showing
35 changed files
with
1,287 additions
and
1,116 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 |
---|---|---|
|
@@ -43,24 +43,39 @@ jobs: | |
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
- run: dart pub get | ||
- run: tool/test.sh | ||
env: | ||
DART_CHANNEL: ${{ matrix.sdk }} | ||
- name: Fetch packages | ||
run: dart pub get | ||
- name: Check Dart code formatting | ||
run: dart run dart_site format-dart --check | ||
- name: Analyze Dart code | ||
run: dart run dart_site analyze-dart | ||
- name: Run Dart tests | ||
run: dart run dart_site test-dart | ||
- name: Check if excerpts are up to date | ||
run: dart run dart_site refresh-excerpts --fail-on-update | ||
|
||
linkcheck: | ||
name: Build site and check links | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
submodules: recursive | ||
- run: make build | ||
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b | ||
with: | ||
sdk: stable | ||
- name: Fetch packages | ||
run: dart pub get | ||
- name: Check for broken Markdown links | ||
run: dart run dart_site check-link-references | ||
- name: Validate the firebase.json file | ||
run: dart run dart_site verify-firebase-json | ||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- run: npm install -g [email protected] | ||
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b | ||
with: | ||
sdk: stable | ||
- run: tool/check-links.sh | ||
- name: Check internal site links are functional | ||
run: dart run dart_site check-links |
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
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
Oops, something went wrong.