Skip to content

Commit

Permalink
Fix CI-CD temporarily without code-climate (#65)
Browse files Browse the repository at this point in the history
* 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
justkawal authored Oct 6, 2022
1 parent f8be541 commit 5729bff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/reuseable_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,31 @@ jobs:
ss58_codec:
name: Test ss58_codec
needs: [lints, markdown-link-check]
uses: rankanizer/polkadart/.github/workflows/reuseable_workflow.yml@feature/polkadart_scale_codec
uses: ./.github/workflows/reuseable_workflow.yml
with:
codecov-flag: "ss58_codec"
working-directory: "./packages/ss58_codec"

ss58:
name: Test ss58
needs: [lints, markdown-link-check]
uses: rankanizer/polkadart/.github/workflows/reuseable_workflow.yml@feature/polkadart_scale_codec
uses: ./.github/workflows/reuseable_workflow.yml
with:
codecov-flag: "ss58"
working-directory: "./packages/ss58"

polkadart_scale_codec:
name: Test polkadart_scale_codec
needs: [lints, markdown-link-check]
uses: rankanizer/polkadart/.github/workflows/reuseable_workflow.yml@feature/polkadart_scale_codec
uses: ./.github/workflows/reuseable_workflow.yml
with:
codecov-flag: "polkadart_scale_codec"
working-directory: "./packages/polkadart_scale_codec"

polkadart:
name: Test polkadart
needs: [lints, markdown-link-check]
uses: rankanizer/polkadart/.github/workflows/reuseable_workflow.yml@feature/polkadart_scale_codec
uses: ./.github/workflows/reuseable_workflow.yml
with:
codecov-flag: "polkadart"
working-directory: "./polkadart"

0 comments on commit 5729bff

Please sign in to comment.