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

CI: shellcheck scripts #525

Merged
merged 3 commits into from
Apr 25, 2024
Merged

CI: shellcheck scripts #525

merged 3 commits into from
Apr 25, 2024

Conversation

smelc
Copy link
Contributor

@smelc smelc commented Apr 24, 2024

Changelog

- description: |
    CI: shellcheck scripts
# uncomment types applicable to the change:
  type:
  # - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  # - bugfix         # fixes a defect
  - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

Bringing IntersectMBO/cardano-cli#734 and IntersectMBO/cardano-cli#737 to API

How to trust this PR

It's the same content as on CLI

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Self-reviewed the diff

@smelc smelc marked this pull request as ready for review April 24, 2024 12:42
flake.nix Outdated
@@ -106,6 +106,8 @@
export CREATE_GOLDEN_FILES=1
'';
};
tests.cardano-api-test.build-tools =
with pkgs.buildPackages; [ shellcheck ];
Copy link
Contributor

@carbolymer carbolymer Apr 24, 2024

Choose a reason for hiding this comment

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

Why do you need shellcheck for building cardano-api-test? Shouldn't that go into shell.tools in line 78?

Copy link
Contributor Author

@smelc smelc Apr 25, 2024

Choose a reason for hiding this comment

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

Because

image

(or because I copied how we were doing it in cardano-cli 😉)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@carbolymer> In the end I added shellcheck to shell.nativeBuildInputs, because shell.tools wanted me to specify a shellcheck version, which I don't want to do. We should take whatever version nixpkgs (or wherever it comes from) provides.

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

LGTM. @carbolymer has a comment.

@smelc smelc force-pushed the smelc/shellcheck-in-ci branch 2 times, most recently from 0c45798 to 0d0236a Compare April 25, 2024 08:43
@smelc smelc force-pushed the smelc/shellcheck-in-ci branch from 0d0236a to 085a80a Compare April 25, 2024 09:01
@smelc smelc added this pull request to the merge queue Apr 25, 2024
Merged via the queue into main with commit c3abf88 Apr 25, 2024
22 checks passed
@smelc smelc deleted the smelc/shellcheck-in-ci branch April 25, 2024 09:35
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.

3 participants