Skip to content

Commit 53a1e08

Browse files
authoredAug 2, 2020
Merge pull request #4 from gql-dart/master
Staying up to date
2 parents 31dae2a + 6309ade commit 53a1e08

File tree

229 files changed

+63423
-4789
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+63423
-4789
lines changed
 

‎.github/workflows/dart.yml

+49
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,52 @@ jobs:
104104
run: |
105105
multipack --only $PACKAGE analyze --version
106106
multipack --only $PACKAGE analyze --fatal-warnings --no-hints .
107+
builder_tests:
108+
strategy:
109+
matrix:
110+
package:
111+
- end_to_end_test
112+
runs-on: ubuntu-latest
113+
container:
114+
image: google/dart:latest
115+
name: Check ${{ matrix.package }}
116+
env:
117+
PACKAGE: ${{ matrix.package }}
118+
steps:
119+
- name: Clone repository
120+
uses: actions/checkout@v2
121+
- name: Activate multipack
122+
run: |
123+
echo "::add-path::$HOME/.pub-cache/bin"
124+
pub global activate multipack
125+
- name: Check pubspec
126+
run: |
127+
multipack --only $PACKAGE pubspec clean
128+
multipack --only $PACKAGE exec git diff --exit-code pubspec.yaml
129+
- name: Override local dependencies
130+
run: |
131+
multipack pubspec hard_override
132+
- name: Get dependencies
133+
run: |
134+
multipack --only $PACKAGE pub get
135+
- name: Run builders
136+
run: |
137+
multipack --only $PACKAGE pub run build_runner build --delete-conflicting-outputs
138+
- name: Check build diff
139+
run: |
140+
multipack --only $PACKAGE exec git diff --exit-code **/*.gql.dart
141+
- name: Check formatting
142+
run: |
143+
echo ""
144+
echo "A list of incorrectly formatted files may follow:"
145+
echo ""
146+
multipack --only $PACKAGE fmt -n . --set-exit-if-changed
147+
echo ""
148+
- name: Analyze package
149+
run: |
150+
multipack --only $PACKAGE analyze --version
151+
multipack --only $PACKAGE analyze --fatal-warnings --no-hints .
152+
- name: Run tests
153+
run: |
154+
multipack --only $PACKAGE exec [ ! -d ./test ] && exit 0
155+
multipack --only $PACKAGE pub run test

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ doc/api/
1212

1313

1414
.idea/
15+
.vscode/
1516

1617
**/*.iml

0 commit comments

Comments
 (0)
Please sign in to comment.