Commit 36e1b19 1 parent 133bf20 commit 36e1b19 Copy full SHA for 36e1b19
File tree 5 files changed +19
-28
lines changed
5 files changed +19
-28
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions:
11
11
12
12
jobs :
13
13
test :
14
- name : Tests
14
+ name : JavaScript Tests
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- uses : actions/checkout@v4
@@ -20,22 +20,12 @@ jobs:
20
20
with :
21
21
ruby-version : ' 3.3'
22
22
bundler-cache : true
23
+ - uses : pnpm/action-setup@v4
23
24
- name : Set up Node
24
25
uses : actions/setup-node@v4
25
26
with :
26
27
node-version : ' 18'
27
- - name : Get yarn cache directory path
28
- id : yarn-cache-dir-path
29
- run :
30
- echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
31
- - uses : actions/cache@v4
32
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
33
- with :
34
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
35
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36
- restore-keys : |
37
- ${{ runner.os }}-yarn-
38
- - name : Yarn
39
- run : yarn
28
+ - name : Install node dependencies
29
+ run : pnpm install
40
30
- name : Run tests
41
31
run : bundle exec rake test:js
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ permissions:
11
11
12
12
jobs :
13
13
test :
14
- name : Tests
14
+ name : Ruby Tests
15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ test/generators/tmp/*
16
16
test /log
17
17
18
18
node_modules
19
- yarn-error.log
20
19
21
20
! .babelrc
21
+
22
+ pnpm-lock.yaml
Original file line number Diff line number Diff line change 55
55
56
56
desc %(Regenerate JavaScript files)
57
57
task :regenerate_javascript do
58
- run_yarn_script 'build'
58
+ run_pnpm_script 'build'
59
59
end
60
60
61
61
desc %(Commit JavaScript files)
@@ -100,15 +100,15 @@ def which(cmd)
100
100
end
101
101
102
102
def run_headless_tests
103
- run_yarn_script 'test' , "#{ test_url } ?autostart=false" do
103
+ run_pnpm_script 'test' , "#{ test_url } ?autostart=false" do
104
104
Process . kill 'INT' , @server
105
105
end
106
106
end
107
107
108
- def run_yarn_script ( script , options = '' )
108
+ def run_pnpm_script ( script , options = '' )
109
109
require 'English'
110
110
111
- system "yarn #{ script } #{ options } "
111
+ system "pnpm #{ script } #{ options } "
112
112
exit_code = $CHILD_STATUS. exitstatus
113
113
114
114
yield if block_given?
Original file line number Diff line number Diff line change 22
22
"test" : " test/javascript/run-qunit.mjs"
23
23
},
24
24
"devDependencies" : {
25
- "@babel/core" : " ^7.25.2 " ,
26
- "@babel/preset-env" : " ^7.25.4 " ,
25
+ "@babel/core" : " ^7.25.8 " ,
26
+ "@babel/preset-env" : " ^7.25.8 " ,
27
27
"@rollup/plugin-babel" : " ^6.0.4" ,
28
- "@rollup/plugin-node-resolve" : " ^15.2.2 " ,
28
+ "@rollup/plugin-node-resolve" : " ^15.3.0 " ,
29
29
"chrome-launcher" : " ^1.1.2" ,
30
- "puppeteer-core" : " ^23.4.1 " ,
31
- "rollup" : " ^4.22 .0" ,
30
+ "puppeteer-core" : " ^23.5.3 " ,
31
+ "rollup" : " ^4.24 .0" ,
32
32
"rollup-plugin-copy" : " ^3.5.0" ,
33
33
"standard" : " ^17.1.2"
34
34
},
35
- "dependencies" : {},
36
35
"peerDependencies" : {
37
36
"jquery" : " >= 1.12.4 < 4.0.0"
38
37
},
39
38
"main" : " dist/client-side-validations.js" ,
40
39
"module" : " dist/client-side-validations.esm.js" ,
41
40
"engines" : {
42
- "node" : " >=12.0 .0" ,
43
- "yarn " : " >=1.19.0 "
41
+ "node" : " >= 18 .0" ,
42
+ "pnpm " : " ^9.12.1 "
44
43
},
44
+ "packageManager" : " pnpm@^9.12.1" ,
45
45
"browserslist" : [
46
46
" >= 1%" ,
47
47
" last 1 major version" ,
You can’t perform that action at this time.
0 commit comments