Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gql-dart/gql into feat/triStateNull
Browse files Browse the repository at this point in the history
  • Loading branch information
knaeckeKami committed Nov 11, 2023
2 parents a613a17 + 0d9c962 commit 46a5407
Show file tree
Hide file tree
Showing 196 changed files with 12,577 additions and 2,476 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ jobs:
- gql_transform_link
runs-on: ubuntu-latest
container:
image: dart
image: dart:latest
name: Check ${{ matrix.package }}
env:
PACKAGE: ${{ matrix.package }}
steps:
- name: Workaround for "detected dubious ownership in repository at", see https://github.com/actions/checkout/issues/1169
run: |
git config --system --add safe.directory /__w/gql/gql
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Activate multipack
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -78,14 +81,19 @@ jobs:
env:
PACKAGE: ${{ matrix.package }}
steps:
- name: Workaround for "detected dubious ownership in repository at", see https://github.com/actions/checkout/issues/1169
run: |
git config --system --add safe.directory /__w/gql/
git config --system --add safe.directory /__w/gql/gql
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Activate multipack
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
dart pub global activate multipack
- name: Check pubspec
run: |
git status
multipack --only $PACKAGE pubspec clean
multipack --only $PACKAGE exec git diff --exit-code pubspec.yaml
- name: Override local dependencies
Expand Down Expand Up @@ -124,8 +132,12 @@ jobs:
env:
PACKAGE: ${{ matrix.package }}
steps:
- name: Workaround for "detected dubious ownership in repository at", see https://github.com/actions/checkout/issues/1169
run: |
git config --system --add safe.directory /__w/gql/
git config --system --add safe.directory /__w/gql/gql
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Activate multipack
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
if: github.ref == 'refs/heads/master'
env:
PACKAGES: 'gql,gql_build,gql_code_builder,gql_dedupe_link,gql_dio_link,gql_exec,gql_http_link,gql_link,gql_pedantic,gql_transform_link,gql_error_link,gql_websocket_link'
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }}
steps:
- name: Clone repository
uses: actions/checkout@v2
Expand All @@ -27,6 +25,11 @@ jobs:
run: |
multipack --only $PACKAGES pubspec sync-versions
- name: Publish packages
env:
PUB_CREDENTIALS_JSON: ${{ secrets.PUB_CREDENTIALS_JSON }}
run: |
echo "{\"accessToken\":\"$PUB_ACCESS_TOKEN\",\"refreshToken\":\"$PUB_REFRESH_TOKEN\",\"idToken\":null,\"tokenEndpoint\":\"https://accounts.google.com/o/oauth2/token\",\"scopes\":[\"openid\",\"https://www.googleapis.com/auth/userinfo.email\"],\"expiration\":1588334512218}" > $HOME/.pub-cache/credentials.json
mkdir -p $XDG_CONFIG_HOME/dart/
echo $PUB_CREDENTIALS_JSON > $XDG_CONFIG_HOME/dart/pub-credentials.json
mkdir -p $HOME/.config/dart/
echo $PUB_CREDENTIALS_JSON > $HOME/.config/dart/pub-credentials.json
multipack --only $PACKAGES pub publish --force
9 changes: 6 additions & 3 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
if: github.ref == 'refs/heads/release'
env:
PACKAGES: 'gql,gql_build,gql_code_builder,gql_dedupe_link,gql_dio_link,gql_exec,gql_http_link,gql_link,gql_pedantic,gql_transform_link,gql_error_link,gql_websocket_link'
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
PUB_REFRESH_TOKEN: ${{ secrets.PUB_REFRESH_TOKEN }}
steps:
- name: Clone repository
uses: actions/checkout@v2
Expand All @@ -24,6 +22,11 @@ jobs:
run: |
multipack --only $PACKAGES pubspec sync-versions
- name: Publish packages
env:
PUB_CREDENTIALS_JSON: ${{ secrets.PUB_CREDENTIALS_JSON }}
run: |
echo "{\"accessToken\":\"$PUB_ACCESS_TOKEN\",\"refreshToken\":\"$PUB_REFRESH_TOKEN\",\"idToken\":null,\"tokenEndpoint\":\"https://accounts.google.com/o/oauth2/token\",\"scopes\":[\"openid\",\"https://www.googleapis.com/auth/userinfo.email\"],\"expiration\":1588334512218}" > $HOME/.pub-cache/credentials.json
mkdir -p $XDG_CONFIG_HOME/dart/
echo $PUB_CREDENTIALS_JSON > $XDG_CONFIG_HOME/dart/pub-credentials.json
mkdir -p $HOME/.config/dart/
echo $PUB_CREDENTIALS_JSON > $HOME/.config/dart/pub-credentials.json
multipack --only $PACKAGES pub publish --force
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,12 @@ Ideas for future work:
| [graphql_flutter][graphql_flutter] | A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package. |
| [normalize][normalize] | Normalization and denormalization of GraphQL responses in Dart |
| [ferry][ferry] | GraphQL Client for Dart |
| [graphql_server][graphql_server]| Base package for implementing GraphQL servers. |
| [graphql-to-dart][graphql-to-dart]| generate dart classes and respective JsonSerializable transcoders ([npm package][graphql-to-dart-npm]) |
| [major_graphql][major_graphql]| generate `built_value` classes and serializers with `pub build` (successor of [graphql-to-dart][graphql-to-dart]) |
| Your project? | Open a PR to add it to this readme! |

[artemis]: https://github.com/comigor/artemis
[graphql_flutter]: https://github.com/zino-app/graphql-flutter
[normalize]: https://github.com/smkhalsa/normalize
[ferry]: https://github.com/gql-dart/ferry
[graphql_server]: https://pub.dev/packages/graphql_server/versions/2.0.0-beta
[graphql-to-dart]: https://github.com/micimize/graphql-to-dart
[graphql-to-dart-npm]: https://www.npmjs.com/package/graphql-to-dart
[major_graphql]: https://github.com/micimize/major

## Contributing

Expand Down
7 changes: 7 additions & 0 deletions codegen/end_to_end_test/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

analyzer:
errors:
# TODO: remove this once the wrongly generated @override
# for toJson() in some cases is fixed
override_on_non_overriding_member: ignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46a5407

Please sign in to comment.