Skip to content

Commit 8877840

Browse files
committed
Run yarn install and bundle install in frozen lockfile mode
1 parent 6bc73a0 commit 8877840

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.github/workflows/examples.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010
examples:
11-
env:
12-
SKIP_YARN_COREPACK_CHECK: 0
1311
strategy:
1412
fail-fast: false
1513
matrix:
1614
versions: ['oldest', 'newest']
15+
env:
16+
SKIP_YARN_COREPACK_CHECK: 0
17+
BUNDLE_FROZEN: ${{ matrix.versions == 'oldest' && 'false' || 'true' }}
1718
runs-on: ubuntu-22.04
1819
steps:
1920
- uses: actions/checkout@v4
@@ -71,7 +72,7 @@ jobs:
7172
run: echo "sha=\"$(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT"
7273
- name: Install Node modules with Yarn for renderer package
7374
run: |
74-
yarn install --no-progress --no-emoji
75+
yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
7576
sudo yarn global add yalc
7677
- name: yalc publish for react-on-rails
7778
run: yalc publish

.github/workflows/lint-js-and-ruby.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88

99
jobs:
1010
build:
11+
env:
12+
BUNDLE_FROZEN: true
1113
runs-on: ubuntu-22.04
1214
steps:
1315
- uses: actions/checkout@v4
@@ -43,7 +45,7 @@ jobs:
4345
key: package-app-gem-cache-${{ hashFiles('Gemfile.lock') }}-oldest
4446
- name: Install Node modules with Yarn for renderer package
4547
run: |
46-
yarn install --no-progress --no-emoji
48+
yarn install --no-progress --no-emoji --frozen-lockfile
4749
sudo yarn global add yalc
4850
- name: yalc publish for react-on-rails
4951
run: yalc publish
@@ -55,13 +57,13 @@ jobs:
5557
- name: yalc add react-on-rails
5658
run: cd spec/dummy && yalc add react-on-rails
5759
- name: Install Node modules with Yarn for dummy app
58-
run: cd spec/dummy && yarn install --no-progress --no-emoji
60+
run: cd spec/dummy && yarn install --no-progress --no-emoji --frozen-lockfile
5961
- name: Install Ruby Gems for package
6062
run: bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
6163
- name: Lint Ruby
6264
run: bundle exec rubocop
6365
- name: Install Node modules with Yarn for dummy app
64-
run: cd spec/dummy && yarn install --ignore-scripts --no-progress --no-emoji
66+
run: cd spec/dummy && yarn install --no-progress --no-emoji --frozen-lockfile
6567
- name: Save dummy app ruby gems to cache
6668
uses: actions/cache@v4
6769
with:

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
4949
- name: Install Node modules with Yarn for renderer package
5050
run: |
51-
yarn install --no-progress --no-emoji
51+
yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
5252
sudo yarn global add yalc
5353
- name: yalc publish for react-on-rails
5454
run: yalc publish
@@ -60,7 +60,7 @@ jobs:
6060
- name: yalc add react-on-rails
6161
run: cd spec/dummy && yalc add react-on-rails
6262
- name: Install Node modules with Yarn for dummy app
63-
run: cd spec/dummy && yarn install --no-progress --no-emoji
63+
run: cd spec/dummy && yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
6464
- name: Save dummy app ruby gems to cache
6565
uses: actions/cache@v4
6666
with:
@@ -146,14 +146,14 @@ jobs:
146146
key: dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}-${{ matrix.versions }}
147147
- name: Install Node modules with Yarn
148148
run: |
149-
yarn install --no-progress --no-emoji
149+
yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
150150
sudo yarn global add yalc
151151
- name: yalc publish for react-on-rails
152152
run: yalc publish
153153
- name: yalc add react-on-rails
154154
run: cd spec/dummy && yalc add react-on-rails
155155
- name: Install Node modules with Yarn for dummy app
156-
run: cd spec/dummy && yarn install --no-progress --no-emoji
156+
run: cd spec/dummy && yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
157157
- name: Dummy JS tests
158158
run: |
159159
cd spec/dummy

.github/workflows/package-js-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: script/convert
3838
- name: Install Node modules with Yarn for renderer package
3939
run: |
40-
yarn install --no-progress --no-emoji
40+
yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
4141
sudo yarn global add yalc
4242
- name: Run JS unit tests for Renderer package
4343
run: yarn test

.github/workflows/rspec-package-specs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
versions: ['oldest', 'newest']
15+
env:
16+
BUNDLE_FROZEN: ${{ matrix.versions == 'oldest' && 'false' || 'true' }}
1517
runs-on: ubuntu-22.04
1618
steps:
1719
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)