-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI-CD temporarily without code-climate (#65)
* optimize CI-CD * ref to main * temporarily ref to this branch to see if test cases work * tested in previous commit, now ref back to main * remove references from test-cases * remove absolute path * path to reuseable_workflow * add file extension
- Loading branch information
Showing
2 changed files
with
10 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,15 @@ jobs: | |
run: | ||
working-directory: ${{ inputs.working-directory }} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3.1.0 | ||
- name: Check out code (LFS) | ||
uses: nschloe/action-cached-lfs-checkout@v1.1.2 | ||
|
||
# Get latest stable version of dart-lang | ||
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d | ||
|
||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
# Uncomment this step to verify the use of 'dart format' on each commit. | ||
- name: Verify formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
|
@@ -39,30 +39,17 @@ jobs: | |
# package:test for this step to succeed. Note that Flutter projects will | ||
# want to change this to 'flutter test'. | ||
- name: Run tests | ||
run: dart test | ||
run: dart run test --coverage=./coverage | ||
|
||
- name: Activate coverage | ||
run: dart pub global activate coverage | ||
|
||
- name: Run Code Coverage | ||
run: dart pub global run coverage:test_with_coverage | ||
- name: Create coverage | ||
run: dart pub global run coverage:format_coverage --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage | ||
|
||
- name: Upload Code Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: ${{ inputs.codecov-flag }} | ||
verbose: true] | ||
|
||
- name: Codeclimate | ||
uses: actions/setup-node@master | ||
with: | ||
node-version: '12' | ||
- run: npm install -g yarn | ||
- run: yarn install | ||
- run: yarn build | ||
- uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: 945dfb58a832d233a3caeb84e3e6d3be212e8c7abcb48117fce63b9adcb43647 | ||
with: | ||
coverageCommand: yarn coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters