Skip to content
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

👷 use yq to manipulate pubspec.yaml in publish CI #471

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

techouse
Copy link
Collaborator

@techouse techouse commented Aug 5, 2023

This PR eliminates the need for publish.sh by leveraging yq which comes pre-installed on ubuntu-latest

yq -i 'del(.dependency_overrides)' pubspec.yaml

The script above removes the dependency_overrides section in pubspec.yaml (used for development), essentially the same thing publish.sh does in a more elegant way.

@techouse techouse added the ci Continuous Integration label Aug 5, 2023
@codecov
Copy link

codecov bot commented Aug 5, 2023

Codecov Report

Merging #471 (4e666dd) into develop (8dbde76) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #471   +/-   ##
========================================
  Coverage    93.72%   93.72%           
========================================
  Files            8        8           
  Lines          446      446           
========================================
  Hits           418      418           
  Misses          28       28           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@techouse techouse added cd Continuous Deployment and removed ci Continuous Integration labels Aug 6, 2023
Copy link
Collaborator

@JEuler JEuler left a comment

Choose a reason for hiding this comment

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

That's cool!

@techouse techouse merged commit 2e00b6a into lejard-h:develop Aug 7, 2023
@techouse techouse deleted the chore/publish-ci-yaml-modufy branch August 7, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cd Continuous Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants