Skip to content

Add Workflows #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Jun 27, 2024
Merged

Add Workflows #8

merged 39 commits into from
Jun 27, 2024

Conversation

AlaaElattar
Copy link
Contributor

No description provided.

@AlaaElattar AlaaElattar changed the base branch from main to main_signer November 26, 2023 10:40
@AlaaElattar AlaaElattar marked this pull request as draft November 26, 2023 10:40
Copy link

codecov bot commented Nov 26, 2023

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@AlaaElattar AlaaElattar marked this pull request as ready for review November 27, 2023 08:27
@AlaaElattar
Copy link
Contributor Author

  • According to the unknown value in the codecov badge will be updated after merging with main.

Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please resolve the conflicts here

@AhmedHanafy725
Copy link
Contributor

do we need to keep the coverage directory uploaded?

Base automatically changed from main_signer to main June 27, 2024 11:36
name: Build

on:
pull_request:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add on push on the main branch too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file name is called build while it doesn't build the code. maybe call it analyze

- name: Install dependencies
run: dart pub global run melos bootstrap

- name: Linting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Linting
- name: Analyze

on:
pull_request:
branches:
- main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here add on pushing on the main branch.

run: |
melos exec rm -rf coverage
melos run unit_test
melos exec --dir-exists="coverage" -- bash -c 'dart pub global run coverde filter --input coverage/lcov.info --output coverage/filtered.lcov.info --filters .g.dart'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please split running the tests and calculating the coverage into 2 different steps. the coverage step should check if the tests passed successfully to run.

melos exec --dir-exists="coverage" -- bash -c 'dart pub global run coverde value -i coverage/filtered.lcov.info > coverage/result.txt'

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this step should check if the coverage step is finished without errors

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this workflow is a duplicate of the coverage workflow. let's remove it

@AlaaElattar AlaaElattar merged commit 6ddf370 into main Jun 27, 2024
2 checks passed
@AlaaElattar AlaaElattar deleted the main_signer_workflows branch June 27, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants