File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,12 +70,10 @@ jobs:
7070 steps :
7171 - name : Checkout code
7272 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
73- # find-missing-translations.js uses Node built-ins only, so the
74- # pinned Node setup is kept but no workspace install is needed.
7573 - name : Setup Node.js and pnpm
7674 uses : ./.github/actions/setup-node-pnpm
7775 with :
78- skip- install: true
76+ install-args : " --frozen-lockfile "
7977 - name : Verify all translations are complete
8078 run : node scripts/find-missing-translations.js
8179 - name : Verify t() calls pass every interpolation variable
Original file line number Diff line number Diff line change @@ -138,17 +138,13 @@ describe("Knip quality gate", () => {
138138} )
139139
140140describe ( "Code QA dependency install" , ( ) => {
141- it ( "installs every job with a frozen lockfile unless the translation check skips installation " , ( ) => {
141+ it ( "installs every job with a frozen lockfile" , ( ) => {
142142 const setups = workflow . match ( / u s e s : \. \/ \. g i t h u b \/ a c t i o n s \/ s e t u p - n o d e - p n p m \n / g) ?? [ ]
143143 const frozen =
144144 workflow . match (
145145 / u s e s : \. \/ \. g i t h u b \/ a c t i o n s \/ s e t u p - n o d e - p n p m \n \s + w i t h : \n \s + i n s t a l l - a r g s : " - - f r o z e n - l o c k f i l e " \n / g,
146146 ) ?? [ ]
147- const skipped =
148- workflow . match ( / u s e s : \. \/ \. g i t h u b \/ a c t i o n s \/ s e t u p - n o d e - p n p m \n \s + w i t h : \n \s + s k i p - i n s t a l l : t r u e \n / g) ?? [ ]
149147 assert . ok ( setups . length > 0 , "missing setup-node-pnpm steps" )
150- assert . equal ( frozen . length + skipped . length , setups . length )
151- assert . equal ( skipped . length , 1 )
152- assert . match ( workflow , / c h e c k - t r a n s l a t i o n s : [ \s \S ] * ?s k i p - i n s t a l l : t r u e / )
148+ assert . equal ( frozen . length , setups . length )
153149 } )
154150} )
You can’t perform that action at this time.
0 commit comments