Skip to content

Commit

Permalink
updating the github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed Nov 14, 2022
1 parent b3e5648 commit 042700e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
version: ["stable", "beta"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
working-directory: ${{ matrix.package }}
Expand All @@ -30,11 +30,11 @@ jobs:
run: ../tool/coverage.sh

- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.package }}
file: ./${{ matrix.package }}/coverage/lcov.info
files: ./${{ matrix.package }}/coverage/lcov.txt

build_flutter_packages:
runs-on: ubuntu-latest
Expand All @@ -45,8 +45,8 @@ jobs:
channel: ["stable", "beta"]

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}

Expand All @@ -59,12 +59,12 @@ jobs:
working-directory: ${{ matrix.package }}

- name: Run tests
run: flutter test --coverage --coverage-path coverage/lcov.info
run: flutter test --coverage --coverage-path coverage/lcov.txt
working-directory: ${{ matrix.package }}

- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.package }}
file: ./${{ matrix.package }}/coverage/lcov.info
files: ./${{ matrix.package }}/coverage/lcov.txt
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
package: [ "mobx", "mobx_codegen" ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Publish if new
id: publish
Expand All @@ -41,7 +41,7 @@ jobs:
package: [ "flutter_mobx" ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Publish if new
id: publish
Expand Down
2 changes: 1 addition & 1 deletion flutter_mobx/melos_flutter_mobx.iml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
<orderEntry type="library" name="Flutter Plugins" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
</module>
2 changes: 1 addition & 1 deletion melos_mobx_dart.iml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
</module>
3 changes: 3 additions & 0 deletions mobx/melos_mobx.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
Expand Down
2 changes: 1 addition & 1 deletion tool/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ echo "Generating LCOV report..."
dart run coverage:format_coverage \
--lcov \
--in=coverage \
--out=coverage/lcov.info \
--out=coverage/lcov.txt \
--packages=.dart_tool/package_config.json \
--report-on=lib

0 comments on commit 042700e

Please sign in to comment.