Skip to content

Commit e39ce81

Browse files
authored
Merge pull request #246 from osociety/deploy-without-directory
Deploy coverage without files
2 parents 77c0ee5 + cb800fb commit e39ce81

122 files changed

Lines changed: 23 additions & 13645 deletions

File tree

Some content is hidden

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

.github/workflows/dart.yml

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -49,38 +49,7 @@ jobs:
4949
# package:test for this step to succeed. Note that Flutter projects will
5050
# want to change this to 'flutter test'.
5151
- name: Run tests
52-
run: dart test --coverage="./coverage"
53-
54-
- name: Install coverage tools
55-
run: dart pub global activate coverage
56-
57-
- name: Install lcov
58-
run: |
59-
if [[ "${{ runner.os }}" == "Linux" ]]; then
60-
sudo apt-get update && sudo apt-get install -y lcov
61-
elif [[ "${{ runner.os }}" == "macOS" ]]; then
62-
brew install lcov
63-
elif [[ "${{ runner.os }}" == "Windows" ]]; then
64-
choco install lcov
65-
fi
66-
shell: bash
67-
68-
- name: Add lcov to PATH on Windows
69-
if: runner.os == 'Windows'
70-
run: echo "C:\\ProgramData\\chocolatey\\lib\\lcov\\tools\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
71-
shell: pwsh
72-
73-
- name: Format Coverage
74-
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/coverage.lcov -i ./coverage
75-
76-
- name: Excluded generated files
77-
run: lcov --remove ./coverage/coverage.lcov '*/lib/src/*.g.dart' '*/lib/src/models/drift/*' -o ./coverage/coverage.lcov
78-
79-
- name: Check Publish Warnings
80-
run: dart pub publish --dry-run
52+
run: dart test
8153

82-
- name: Upload Coverage to CodeCov
83-
uses: codecov/codecov-action@v4
84-
with:
85-
token: ${{secrets.CODECOV_TOKEN}}
86-
file: coverage/coverage.lcov
54+
- name: Check Publish Warnings
55+
run: dart pub publish --dry-run

.github/workflows/publish.yml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,10 @@ jobs:
2525
run: dart analyze --fatal-infos
2626

2727
- name: Run tests
28-
run: dart test --coverage="coverage"
29-
30-
- name: Install coverage tools
31-
run: dart pub global activate coverage
32-
33-
- name: Install lcov
34-
run: |
35-
if [[ "${{ runner.os }}" == "Linux" ]]; then
36-
sudo apt-get update && sudo apt-get install -y lcov
37-
elif [[ "${{ runner.os }}" == "macOS" ]]; then
38-
brew install lcov
39-
elif [[ "${{ runner.os }}" == "Windows" ]]; then
40-
choco install lcov
41-
fi
42-
shell: bash
43-
44-
- name: Format Coverage
45-
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/coverage.lcov -i ./coverage
46-
47-
- name: Excluded generated files
48-
run: lcov --remove ./coverage/coverage.lcov '*/lib/src/*.g.dart' '*/lib/src/models/drift/*' -o ./coverage/coverage.lcov
49-
28+
run: dart test
5029
- name: Check Publish Warnings
5130
run: dart pub publish --dry-run
52-
53-
- name: Upload Coverage to CodeCov
54-
uses: codecov/codecov-action@v4
55-
with:
56-
token: ${{secrets.CODECOV_TOKEN}}
57-
file: coverage/coverage.lcov
58-
31+
5932
publish:
6033
needs: 'test'
6134
permissions:

.github/workflows/static.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ jobs:
3333
uses: actions/checkout@v4
3434
- name: Setup Pages
3535
uses: actions/configure-pages@v5
36+
37+
- uses: dart-lang/setup-dart@v1.4
38+
39+
- name: Run tests
40+
run: dart test --coverage="./coverage"
41+
42+
- name: Install coverage tools
43+
run: dart pub global activate coverage
44+
45+
- name: Install lcov
46+
run: sudo apt-get update && sudo apt-get install -y lcov
47+
48+
- name: Format Coverage
49+
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/coverage.lcov -i ./coverage
50+
51+
- name: Excluded generated files
52+
run: lcov --remove ./coverage/coverage.lcov '*/lib/src/*.g.dart' '*/lib/src/models/drift/*' -o ./coverage/coverage.lcov
53+
3654
- name: Upload artifact
3755
uses: actions/upload-pages-artifact@v3
3856
with:

coverage/report/amber.png

-141 Bytes
Binary file not shown.

coverage/report/cmd_line

Lines changed: 0 additions & 1 deletion
This file was deleted.

coverage/report/emerald.png

-141 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)