onflow / flow-go

A fast, secure, and developer-friendly blockchain built to support the next generation of games, apps, and the digital assets that power them.
GNU Affero General Public License v3.0
534 stars 179 forks source link

Add support for building private dependencies in CI #6727

Closed sjonpaulbrown closed 6 days ago

sjonpaulbrown commented 1 week ago

PR Description: Add Support for Building Private Dependencies in CI

This PR introduces changes to support building private dependencies in the CI pipeline, specifically for private Cadence repositories.


Key Changes

  1. Update CI steps to load Cadence Deploy Key in CI:

    • Adds CI step to load the CADENCE_DEPLOY_KEY into the SSH agent for accessing private repositories.
    • Configures Git to use SSH for dependencies.
    • Dynamically sets SSH_AUTH_SOCK in the environment.
    • Warns if CADENCE_DEPLOY_KEY is not set, allowing the workflow to continue.
  2. Update GOPRIVATE Configuration:

    • Updates GOPRIVATE to github.com/onflow/* in both the GitHub Actions workflow and the Makefile to bypass the Go module proxy for private repositories.

Impact

These changes enable seamless fetching and building of private Cadence dependencies during CI, improving the reliability and security of the build process.

codecov-commenter commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 41.22%. Comparing base (8844d8e) to head (771319f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6727 +/- ## ========================================== - Coverage 41.22% 41.22% -0.01% ========================================== Files 2054 2053 -1 Lines 182368 182299 -69 ========================================== - Hits 75190 75153 -37 + Misses 100875 100848 -27 + Partials 6303 6298 -5 ``` | [Flag](https://app.codecov.io/gh/onflow/flow-go/pull/6727/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/onflow/flow-go/pull/6727/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow) | `41.22% <ø> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onflow#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: