Skip to content

Commit 186e758

Browse files
committed
Split workflow
1 parent 06ce0fd commit 186e758

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/dart_frog_lint.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,25 @@ on:
2020

2121
jobs:
2222
build:
23+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
24+
with:
25+
working_directory: packages/dart_frog
26+
27+
custom_lint:
2328
runs-on: ubuntu-latest
2429
steps:
25-
- uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
30+
- uses: actions/[email protected]
2631
with:
27-
working_directory: packages/dart_frog
28-
- run: dart run custom_lint
32+
fetch-depth: 2
33+
- uses: subosito/[email protected]
34+
- name: Add pub cache bin to PATH
35+
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
36+
- name: Add pub cache to PATH
37+
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
38+
- name: Install dependencies
39+
run: flutter pub get
40+
- name: Run custom_lint
41+
run: dart run custom_lint
2942

3043
pana:
3144
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1

0 commit comments

Comments
 (0)