-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a JSON (v3) protocol (#2669)
* work on a json protocol * merge to main * fix analysis issues * rename AnalysisResults => AnalysisResponse * updates for the json protocol * add tests for v3 protocol * update .gitattributes * review feedback * introduce a common package:dartpad_shared package * don't commit the lock file * update gitattributes file
- Loading branch information
1 parent
3cab198
commit c222c96
Showing
43 changed files
with
1,325 additions
and
841 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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
pkgs/dart_pad/lib/src/protos/** linguist-generated=true | ||
pkgs/sketch_pad/lib/src/protos/** linguist-generated=true | ||
pkgs/sketch_pad/web/codemirror/** linguist-generated=true |
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,40 @@ | ||
name: package:dartpad_shared | ||
|
||
permissions: read-all | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/dartpad_shared.yml' | ||
- 'pkgs/dartpad_shared/**' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/dartpad_shared.yml' | ||
- 'pkgs/dartpad_shared/**' | ||
schedule: | ||
- cron: '0 0 * * 0' # weekly | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: pkgs/dartpad_shared/ | ||
|
||
steps: | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | ||
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | ||
|
||
- name: Install dart dependencies | ||
run: dart pub get | ||
|
||
- name: Verify formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
|
||
- name: Regenerate model classes | ||
run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
- name: Analyze project source | ||
run: dart analyze --fatal-infos |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.