8000 Add actionlint on CI by Czaki · Pull Request #7049 · napari/napari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add actionlint on CI #7049

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 13 commits into from
Jul 22, 2024
Merged

Add actionlint on CI #7049

merged 13 commits into from
Jul 22, 2024

Conversation

Czaki
Copy link
Collaborator
@Czaki Czaki commented Jul 1, 2024

References and relevant issues

To avoid PR like #7033

Description

This PR adds action lint on CI to early detect problems with workflows that are not executed on pull-request trigger.

I first try to do this on pre-commit, but then it will require go compiler and will not contain shellcheck.

@github-actions github-actions bot added the maintenance PR with maintance changes, label Jul 1, 2024
Copy link
codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.99%. Comparing base (62ef757) to head (b9ee995).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7049      +/-   ##
==========================================
+ Coverage   92.96%   92.99%   +0.03%     
==========================================
  Files         618      618              
  Lines       56531    56531              
==========================================
+ Hits        52552    52569      +17     
+ Misses       3979     3962      -17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Czaki Czaki marked this pull request as ready for review July 1, 2024 18:17
Comment on lines 82 to 84
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -ignore SC2129
shell: bash
Copy link
Member

Choose a reason for hiding this comment

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

This is a bit icky (downloading a bash script from main). Maybe put it in its own workflow? Ideally it would be its own action. Also, it should only run when the .github folder is touched?

Copy link
Collaborator Author
@Czaki Czaki Jul 8, 2024

Choose a reason for hiding this comment

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

This is a official way to do this based on documentation. The script itself is downloading latest release.

Moved to own action,

@Czaki
Copy link
Collaborator Author
Czaki commented Jul 8, 2024

@jni Which milestone?

@jni
Copy link
Member
jni commented Jul 8, 2024

I think 0.5.1, unless you think it will help work with #7082 and the like 😅

@Czaki Czaki added this to the 0.5.1 milestone Jul 8, 2024
@Czaki
Copy link
Collaborator Author
Czaki commented Jul 19, 2024

current fail is unrelated to changes in this PR. I think that we should merge this PR even with Comprehensive Test failing

@jni jni merged commit e009163 into napari:main Jul 22, 2024
67 of 68 checks passed
@jni jni deleted the actionlint branch July 22, 2024 08:16
@github-actions github-actions bot removed the ready to merge Last chance for comments! Will be merged in ~24h label Jul 22, 2024
jni added a commit to jni/napari-docs that referenced this pull request Jul 22, 2024
jni added a commit to napari/docs that referenced this pull request Jul 22, 2024
This adds actionlint from napari/napari#7049 to help prevent errors in
GHA workflows.

**Update:** @Czaki also fixed the errors found by actionlint and ensured
that new docs builds from tags (a) end up in their own folder (rather
than dev/), and (b) don't include alpha, beta and rc tags.

---------

Co-authored-by: Grzegorz Bokota <bokota+github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PR with maintance changes,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0