Skip to content

Commit 655bbfe

Browse files
authored
Merge pull request #56 from GetStream/improve-gh-actions
add melos dryrun to actions
2 parents e3c11a2 + c77380f commit 655bbfe

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
- name: Add feed apiKey to env
3737
run: echo "apiKey="${{ secrets.APIKEY }}"" >> $GITHUB_ENV
3838

39-
- run: dart pub global activate melos
39+
- name: Activate melos
40+
run: dart pub global activate melos
4041

4142
- name: Install dependencies
4243
run: melos bootstrap
@@ -50,8 +51,13 @@ jobs:
5051
- name: Run tests
5152
run: melos run test
5253

54+
- name: Pub dry run
55+
if: github.ref == 'refs/heads/master'
56+
run: melos run dryrun
57+
5358
- name: Post Codecov report
5459
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
60+
5561
- uses: VeryGoodOpenSource/[email protected]
5662
with:
5763
path: packages/stream_feed/coverage/lcov.info

melos.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ scripts:
1717
Run `dart analyze` in all packages.
1818
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
1919
20+
dryrun:
21+
run: |
22+
melos exec -c 1 --no-private --ignore="*example*" -- \
23+
pub publish --dry-run
24+
description: |
25+
Run `pub publish --dry-run` in all packages.
26+
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
27+
2028
generate:
2129
run: melos run generate:dart && melos run generate:flutter
2230
description: Build all generated files for Dart & Flutter packages in this project.

0 commit comments

Comments
 (0)