Skip to content

contribute a CI #3

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 2 commits into from
Feb 14, 2023
Merged

contribute a CI #3

merged 2 commits into from
Feb 14, 2023

Conversation

devoncarew
Copy link
Member

@devoncarew devoncarew commented Feb 14, 2023

  • contribute a CI for package:dash_analytics
  • add some auto-labeling for PRs and an issue template
  • set up dependabot

@devoncarew devoncarew marked this pull request as ready for review February 14, 2023 20:39
Comment on lines 15 to 20
import 'package:dash_analytics/src/utils.dart';
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:test/test.dart';
import 'package:yaml/yaml.dart';

Copy link
Contributor

Choose a reason for hiding this comment

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

When I had these import statements within my repo, it recognized that the imports for package:... were separate from package:dash_analytics/... but it seems that it treats them the same now and combines them into one block. I imagine this because of the new structure?

https://github.com/eliasyishak/dash_analytics/blob/main/test/dash_analytics_test.dart#L9-L20

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, that's odd - what were you using to sort the imports?

Here, I used the 'organize imports' command (from vs-code, via the analysis server). That will just treat all package: imports the same (sorting dart:, package:, then file imports, and breaking them into separate groups).

Copy link
Contributor

Choose a reason for hiding this comment

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

I also used the same command via VS Code, but just adding here for clarity but it seems like the root folder for VS Code affects how it organizes imports within the test directory. When making root tools/ it doesn't recognize that package:... and 'package:dash_analytics/...is different. But when you make your roottools/pkgs/dash_analytics` it properly separates them.

Could have to do with how the analysis server is determining which directory is the source directory for a given package.

@devoncarew
Copy link
Member Author

let me know if this looks good as is or you'd like the import order change reverted -

Copy link
Contributor

@eliasyishak eliasyishak left a comment

Choose a reason for hiding this comment

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

I'll look more into the sorting issue later, but LGTM otherwise!

@devoncarew devoncarew merged commit 224fd0e into main Feb 14, 2023
@devoncarew devoncarew deleted the ci branch February 14, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants