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

fix: replace Webpacker with Shakapacker #1622

Merged
merged 81 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
156df7f
fix: replace Webpacker with Shakapacker
adriangohjw May 20, 2024
6df4e8d
add changelog entry
Judahmeek May 21, 2024
5051a55
update gemfile to use shakapacker 8.0.0
adriangohjw May 21, 2024
6212747
Replace Webpacker with Shakapacker
adriangohjw May 21, 2024
39b32e2
Update WebpackerUtils to ShakapackerUtils
adriangohjw May 21, 2024
8c0d019
(spec) package.json - update shakapacker to v8 + add "packageManager"
adriangohjw May 21, 2024
7723165
fix specs - Update Webpacker to Shakapacker
adriangohjw May 21, 2024
797ea16
Fix rubocop linting error
adriangohjw May 21, 2024
f1c6fd7
remove post-install action for shakapacker < v7
adriangohjw May 21, 2024
8559b2c
fix: updated test description and context tag
adriangohjw May 21, 2024
d832db4
update min. shakapacker version to 7.2.1
adriangohjw May 21, 2024
4609d03
use adapter method for Shakapacker
Judahmeek Jun 14, 2023
812c94c
Ci fixes & linting
Judahmeek Jun 12, 2024
328aacb
per review
Judahmeek Jun 12, 2024
52c0ea8
Ci fix for changed-files
Judahmeek Jun 13, 2024
3711e9c
revert changes to install generator
Judahmeek Jun 13, 2024
7810da0
WIP
Judahmeek Jun 14, 2024
0d82c02
still wip
Judahmeek Jun 14, 2024
2ec90b8
getting there?
Judahmeek Jun 14, 2024
ae8fba8
more wip
Judahmeek Jun 14, 2024
bfaf244
remove appraisal and dynamically modify gemfiles
Judahmeek Jun 14, 2024
d33ad0a
wip again
Judahmeek Jun 14, 2024
446c090
more fixes
Judahmeek Jun 14, 2024
8a0003e
fixes more
Judahmeek Jun 14, 2024
15db710
still fixing
Judahmeek Jun 14, 2024
789958e
hopefully getting somewhere
Judahmeek Jun 14, 2024
96bcb5f
more fixes
Judahmeek Jun 15, 2024
e82d924
resolve install generator errors
Judahmeek Jun 25, 2024
6cc3d4f
additional fixes
Judahmeek Jun 25, 2024
25edd25
debugging integration failure
Judahmeek Jun 25, 2024
de5bfaf
add log statements
Judahmeek Jun 25, 2024
07f2e72
use info from log statements to resolve issues
Judahmeek Jun 26, 2024
19ddd8c
fix invalid job configurations
Judahmeek Jun 26, 2024
5cc7a81
add log statements to debug new issues
Judahmeek Jun 26, 2024
62c69db
further debugging
Judahmeek Jun 26, 2024
4fac40f
fix debug statement
Judahmeek Jun 26, 2024
4c9568a
fix other debug statement
Judahmeek Jun 26, 2024
32945f7
maybe fixes
Judahmeek Jun 26, 2024
0f3bdcd
fix maybes
Judahmeek Jun 26, 2024
861d544
resolve pack gen errors
Judahmeek Jun 26, 2024
60b0ec0
whatever
Judahmeek Jun 26, 2024
e2090b4
maybe maybe
Judahmeek Jun 26, 2024
1017815
all integration specs should be passing
Judahmeek Jun 26, 2024
f3be6af
linting
Judahmeek Jun 26, 2024
24c8d5a
further linting
Judahmeek Jun 26, 2024
00827e4
add example debug statement
Judahmeek Jun 26, 2024
0f6ddcb
add missing method
Judahmeek Jun 26, 2024
15cbe82
focus on generator job
Judahmeek Jun 26, 2024
b6d0201
debug yarn install
Judahmeek Jun 26, 2024
196dd26
debug/fix for packageManager key
Judahmeek Jun 26, 2024
6ba18dc
separate tasks by packer type
Judahmeek Jun 26, 2024
d6300a3
skip corepack check
Judahmeek Jun 26, 2024
8b673f2
debug more
Judahmeek Jun 26, 2024
2e94227
potential fix
Judahmeek Jun 26, 2024
321adf0
try again
Judahmeek Jun 26, 2024
6444653
closer
Judahmeek Jun 26, 2024
8162ee7
fail-fast false
Judahmeek Jun 26, 2024
a694c99
closer
Judahmeek Jun 26, 2024
2a5d78d
no point in matrix if shakapacker v6 doesn't support node 16
Judahmeek Jun 26, 2024
aaa2140
one more fix
Judahmeek Jun 26, 2024
afe89b3
Revert "focus on generator job"
Judahmeek Jun 26, 2024
428fd66
remove debug statements
Judahmeek Jun 27, 2024
ed3806f
Revert "no point in matrix if shakapacker v6 doesn't support node 16"
Judahmeek Jun 27, 2024
21fa4ea
revert 'one more fix'
Judahmeek Jun 27, 2024
43d15d0
remove all jobs except generators again
Judahmeek Jun 27, 2024
9b063e7
use Node v20 for all gen tests
Judahmeek Jun 27, 2024
6a640c5
add debug statement
Judahmeek Jun 27, 2024
2726d61
move example_type initialization logic to run_rspec file
Judahmeek Jun 27, 2024
4ca8cf1
linting & debug statement removal
Judahmeek Jun 27, 2024
a03e171
Revert "remove all jobs except generators again"
Judahmeek Jun 27, 2024
3a8df96
restore shakapacker to Gemfile & package.json
Judahmeek Jun 28, 2024
d77929e
restore dumy apps rake task
Judahmeek Jun 28, 2024
4c3cb9b
use shakapacker v8 by default
Judahmeek Jun 28, 2024
1915582
create a script to convert shakapacker support from v8 to v6
Judahmeek Jun 28, 2024
d08a465
use conversion script for CI
Judahmeek Jun 28, 2024
2061f3a
linting
Judahmeek Jun 28, 2024
82a2aa7
fixes?
Judahmeek Jun 28, 2024
b5e7939
final fixes?
Judahmeek Jun 28, 2024
4cce360
update Contributing doc
Judahmeek Jun 28, 2024
c96a47e
using_xpacker? > using_xpacker_const?
Judahmeek Jun 28, 2024
b8c5d28
linting
Judahmeek Jun 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ on:

jobs:
examples:
env:
SKIP_YARN_COREPACK_CHECK: 0
strategy:
fail-fast: false
matrix:
versions: ['oldest', 'newest']
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get changed files
id: changed-files-specific
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
Expand All @@ -26,7 +32,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
ruby-version: ${{ matrix.versions == 'oldest' && '3.0' || '3.3' }}
bundler: 2.5.9
- name: Setup Node
uses: actions/setup-node@v3
Expand All @@ -50,16 +56,17 @@ jobs:
uses: actions/cache@v3
with:
path: vendor/bundle
key: v5-package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
- id: get-sha
run: echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Install Node modules with Yarn for renderer package
run: |
yarn install --no-progress --no-emoji
yarn run eslint -v
sudo yarn global add yalc
- name: yalc publish for react-on-rails
run: yalc publish
- name: Dynamically add the right shakapacker version to the Gemfile
run: echo "gem 'shakapacker', '~> ${{ matrix.versions == 'oldest' && '6.6.0' || '8.0.0' }}'" >> Gemfile
- name: Install Ruby Gems for package
run: bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
- name: Ensure minimum required Chrome version
Expand All @@ -78,7 +85,7 @@ jobs:
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Main CI
if: steps.changed-files.outputs.any_changed == 'true'
run: bundle exec rake run_rspec:examples
run: bundle exec rake run_rspec:${{ matrix.versions == 'oldest' && 'web' || 'shaka' }}packer_examples
- name: Store test results
uses: actions/upload-artifact@v3
with:
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/lint-js-and-ruby.yml

This file was deleted.

188 changes: 0 additions & 188 deletions .github/workflows/main.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/package-js-tests.yml

This file was deleted.

Loading
Loading