@@ -5,7 +5,7 @@ name: Auto Test
55
66on :
77 push :
8- branches : [ master, 1.23.X, 3.0.0 ]
8+ branches : [master, 1.23.X, 3.0.0]
99 pull_request :
1010permissions : {}
1111
@@ -21,39 +21,39 @@ jobs:
2121 matrix :
2222 os : [macos-latest, ubuntu-22.04, windows-latest, ubuntu-22.04-arm]
2323 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24- node : [ 20, 24 ]
24+ node : [20, 24]
2525 # Also test non-LTS, but only on Ubuntu.
2626 include :
2727 - os : ubuntu-22.04
2828 node : 25
2929
3030 steps :
31- - run : git config --global core.autocrlf false # Mainly for Windows
32- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
33- with : { persist-credentials: false }
34-
35- - name : Cache/Restore node_modules
36- uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
37- id : node-modules-cache
38- with :
39- path : node_modules
40- key : node-modules-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
41-
42- - name : Use Node.js ${{ matrix.node }}
43- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
44- with :
45- node-version : ${{ matrix.node }}
46- - run : npm clean-install --no-fund
47-
48- - name : Rebuild native modules for ARM64
49- if : matrix.os == 'ubuntu-22.04-arm'
50- run : npm rebuild @louislam/sqlite3
51-
52- - run : npm run build
53- - run : npm run test-backend
54- env :
55- HEADLESS_TEST : 1
56- JUST_FOR_TEST : ${{ secrets.JUST_FOR_TEST }}
31+ - run : git config --global core.autocrlf false # Mainly for Windows
32+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
33+ with : { persist-credentials: false }
34+
35+ - name : Cache/Restore node_modules
36+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
37+ id : node-modules-cache
38+ with :
39+ path : node_modules
40+ key : node-modules-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
41+
42+ - name : Use Node.js ${{ matrix.node }}
43+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
44+ with :
45+ node-version : ${{ matrix.node }}
46+ - run : npm clean-install --no-fund
47+
48+ - name : Rebuild native modules for ARM64
49+ if : matrix.os == 'ubuntu-22.04-arm'
50+ run : npm rebuild @louislam/sqlite3
51+
52+ - run : npm run build
53+ - run : npm run test-backend
54+ env :
55+ HEADLESS_TEST : 1
56+ JUST_FOR_TEST : ${{ secrets.JUST_FOR_TEST }}
5757
5858 # As a lot of dev dependencies are not supported on ARMv7, we have to test it separately and just test if `npm ci --production` works
5959 armv7-simple-test :
6363 strategy :
6464 fail-fast : false
6565 matrix :
66- node : [ 20, 22 ]
66+ node : [20, 22]
6767 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
6868
6969 steps :
@@ -92,23 +92,23 @@ jobs:
9292 contents : read
9393
9494 steps :
95- - run : git config --global core.autocrlf false # Mainly for Windows
96- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
97- with : { persist-credentials: false }
98-
99- - name : Cache/Restore node_modules
100- uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
101- id : node-modules-cache
102- with :
103- path : node_modules
104- key : node-modules-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
105-
106- - name : Use Node.js 20
107- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
108- with :
109- node-version : 20
110- - run : npm clean-install --no-fund
111- - run : npm run lint:prod
95+ - run : git config --global core.autocrlf false # Mainly for Windows
96+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
97+ with : { persist-credentials: false }
98+
99+ - name : Cache/Restore node_modules
100+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
101+ id : node-modules-cache
102+ with :
103+ path : node_modules
104+ key : node-modules-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
105+
106+ - name : Use Node.js 20
107+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
108+ with :
109+ node-version : 20
110+ - run : npm clean-install --no-fund
111+ - run : npm run lint:prod
112112
113113 e2e-test :
114114 runs-on : ubuntu-22.04-arm
@@ -117,28 +117,28 @@ jobs:
117117 env :
118118 PLAYWRIGHT_VERSION : ~1.39.0
119119 steps :
120- - run : git config --global core.autocrlf false # Mainly for Windows
121- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
122- with : { persist-credentials: false }
123-
124- - name : Cache/Restore node_modules
125- uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
126- id : node-modules-cache
127- with :
128- path : node_modules
129- key : node-modules-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
130-
131- - name : Setup Node.js
132- uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
133- with :
134- node-version : 22
135- - run : npm clean-install --no-fund
136-
137- - name : Rebuild native modules for ARM64
138- run : npm rebuild @louislam/sqlite3
139-
140- - name : Install Playwright ${{ env.PLAYWRIGHT_VERSION }}
141- run : npx playwright@${{ env.PLAYWRIGHT_VERSION }} install
142-
143- - run : npm run build
144- - run : npm run test-e2e
120+ - run : git config --global core.autocrlf false # Mainly for Windows
121+ - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
122+ with : { persist-credentials: false }
123+
124+ - name : Cache/Restore node_modules
125+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
126+ id : node-modules-cache
127+ with :
128+ path : node_modules
129+ key : node-modules-${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
130+
131+ - name : Setup Node.js
132+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
133+ with :
134+ node-version : 22
135+ - run : npm clean-install --no-fund
136+
137+ - name : Rebuild native modules for ARM64
138+ run : npm rebuild @louislam/sqlite3
139+
140+ - name : Install Playwright ${{ env.PLAYWRIGHT_VERSION }}
141+ run : npx playwright@${{ env.PLAYWRIGHT_VERSION }} install
142+
143+ - run : npm run build
144+ - run : npm run test-e2e
0 commit comments