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

Run GitHub Actions on PRs #159

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tagliala
Copy link

@tagliala tagliala commented May 22, 2024

Hi, I've noticed that PRs do not run actions, so they can introduce issues that will only discovered when merged to master

--

Also:

  • Set explicit permissions to read for better security
  • Update actions

Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions


Blocked by

@tagliala tagliala marked this pull request as draft May 22, 2024 12:42
@tagliala tagliala force-pushed the chore/run-actions-on-prs branch 9 times, most recently from 27eb03d to 9b78de4 Compare May 22, 2024 13:15
@tagliala
Copy link
Author

I'm facing some issues related to the usage of an old version of webpacker which still uses node-sass, and Python 2.7 is not available anymore. I guess that https://github.com/jamesmartin/inline_svg_test_app/tree/rails6-webpacker needs an updated, but then we should use webpacker 5.x

Shakapacker is the official, actively maintained successor to Webpacker.

Shakapacker v7 changed the spelling of `Webpacker` to `Shakapacker` in
the entire project, but still provided backward compatibility for
`Webpacker` spelling.

v8 dropped the deprecated spelling

This commit also:
- Checks if `Shakapacker` is defined; if not, it falls back on
  `Webpacker`.
- Uses the scope resolution operator to resolve at top-level
  scope
- Checks `protocol` instead of `https?` because the former is available
  from Webpacker 3 and the latter is not available anymore in
  Shakapacker >= 8

Refs:
- shakacode/shakapacker#414
- shakacode/shakapacker#429
- shakacode/shakapacker#486

Close jamesmartin#156
@jamesmartin
Copy link
Owner

Thanks for opening this PR. New branch created in the inline_svg_test_app repo for rails7-shakapacker so you can get the integration tests running.

Also:

- Set explicit permissions to read for better security. Workflows run
  with extended set of permissions by default. By specifying
  any permission explicitly, all others are set to none.
- Update actions to prevent deprecation warning messages
- Remove redundant `gem install bundler` (bundler is already available after
  setup-ruby action)

Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
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.

None yet

2 participants