@@ -16,12 +16,10 @@ jobs:
1616 name : Build the package
1717 steps :
1818 - uses : actions/checkout@v4
19- - uses : pnpm/action-setup@v2
20- with :
21- version : 8
19+ - uses : pnpm/action-setup@v3
2220 - uses : actions/setup-node@v4
2321 with :
24- node-version : 18
22+ node-version : 22
2523 cache : ' pnpm'
2624 - run : pnpm install
2725 env :
3129
3230 # Use cache to share the output across different jobs
3331 # No need to cache node_modules because they are all bundled
34- - uses : actions/cache/save@v3
32+ - uses : actions/cache/save@v4
3533 id : cache
3634 with :
3735 path : outfile.cjs
@@ -55,62 +53,64 @@ jobs:
5553 # Skip ESLint/Prettier tests as we've reached the limit of job numbers
5654 # TODO: Find a way to test them without adding new jobs
5755
58- node-version : [18 ]
56+ node-version : [22 ]
5957 os : [ubuntu-latest]
6058
6159 # Run a few tests on other systems and Node.js versions
6260 include :
63- - node-version : 18
61+ - node-version : 22
6462 os : windows-latest
6563 flag-for-ts : ' --typescript'
6664 flag-for-jsx : ' --jsx'
6765 flag-for-router : ' --router'
6866 flag-for-pinia : ' --pinia'
6967 flag-for-vitest : ' --vitest'
7068 flag-for-e2e : ' --cypress'
69+ flag-for-eslint : ' --eslint'
7170
72- - node-version : 18
71+ - node-version : 22
7372 os : macos-latest
7473 flag-for-ts : ' --typescript'
7574 flag-for-jsx : ' --jsx'
7675 flag-for-router : ' --router'
7776 flag-for-pinia : ' --pinia'
7877 flag-for-vitest : ' --vitest'
7978 flag-for-e2e : ' --cypress'
79+ flag-for-eslint : ' --eslint'
8080
81- - node-version : 20
81+ - node-version : 18
8282 os : ubuntu-latest
8383 flag-for-ts : ' --typescript'
8484 flag-for-jsx : ' --jsx'
8585 flag-for-router : ' --router'
8686 flag-for-pinia : ' --pinia'
8787 flag-for-vitest : ' --vitest'
8888 flag-for-e2e : ' --cypress'
89+ flag-for-eslint : ' --eslint'
8990
90- - node-version : 16
91+ - node-version : 20
9192 os : ubuntu-latest
9293 flag-for-ts : ' --typescript'
9394 flag-for-jsx : ' --jsx'
9495 flag-for-router : ' --router'
9596 flag-for-pinia : ' --pinia'
9697 flag-for-vitest : ' --vitest'
9798 flag-for-e2e : ' --cypress'
99+ flag-for-eslint : ' --eslint'
98100 runs-on : ${{ matrix.os }}
99101 continue-on-error : ${{ matrix.os == 'windows-latest' }}
100102 env :
101- FEATURE_FLAGS : ${{ matrix.flag-for-ts }} ${{ matrix.flag-for-jsx }} ${{ matrix.flag-for-router }} ${{ matrix.flag-for-pinia }} ${{ matrix.flag-for-vitest }} ${{ matrix.flag-for-e2e }}
103+ FEATURE_FLAGS : ${{ matrix.flag-for-ts }} ${{ matrix.flag-for-jsx }} ${{ matrix.flag-for-router }} ${{ matrix.flag-for-pinia }} ${{ matrix.flag-for-vitest }} ${{ matrix.flag-for-e2e }} ${{matrix.flag-for-eslint}}
102104 # Sometimes the Linux runner can't verify Cypress in 30s
103105 CYPRESS_VERIFY_TIMEOUT : 60000
104106 steps :
105107 - uses : actions/checkout@v4
106- - uses : pnpm/action-setup@v2
107- with :
108- version : 8
108+ - uses : pnpm/action-setup@v3
109109 - uses : actions/setup-node@v4
110110 with :
111111 node-version : ${{ matrix.node-version }}
112112 cache : ' pnpm'
113- - uses : actions/cache/restore@v3
113+ - uses : actions/cache/restore@v4
114114 id : cache-restore
115115 with :
116116 path : outfile.cjs
@@ -135,15 +135,15 @@ jobs:
135135 - if : ${{ contains(matrix.flag-for-e2e, '--cypress') }}
136136 name : Cache Cypress binaries
137137 id : cache-cypress
138- uses : actions/cache@v3
138+ uses : actions/cache@v4
139139 with :
140140 # TODO: avoid snowballing by adding version
141141 key : ${{ runner.os }}-cypress-bin
142142 path : ${{ env.CYPRESS_CACHE_FOLDER }}
143143
144144 - if : ${{ contains(matrix.flag-for-e2e, '--playwright') }}
145145 name : Cache Playwright's binary
146- uses : actions/cache@v3
146+ uses : actions/cache@v4
147147 with :
148148 # Playwright removes unused browsers automatically
149149 # So does not need to add playwright version to key
@@ -189,3 +189,8 @@ jobs:
189189 name : Run e2e test script
190190 working-directory : ../sample-project
191191 run : pnpm test:e2e
192+
193+ - if : ${{ contains(matrix.flag-for-eslint, '--') }}
194+ name : Run lint script
195+ working-directory : ../sample-project
196+ run : pnpm lint --no-fix --max-warnings=0
0 commit comments