@@ -17,12 +17,13 @@ jobs:
17
17
uses : actions/setup-node@v3
18
18
with :
19
19
node-version : 18
20
- cache : " yarn"
20
+ cache : " npm"
21
+
22
+ - name : Install dependencies
23
+ run : npm ci
21
24
22
25
- name : Run format
23
- run : |
24
- yarn install
25
- yarn format
26
+ run : npm run format
26
27
27
28
test :
28
29
timeout-minutes : 15
@@ -36,12 +37,13 @@ jobs:
36
37
uses : actions/setup-node@v3
37
38
with :
38
39
node-version : 18
39
- cache : " yarn"
40
+ cache : " npm"
41
+
42
+ - name : Install dependencies
43
+ run : npm ci
40
44
41
45
- name : Run test
42
- run : |
43
- yarn install
44
- yarn test --passWithNoTests
46
+ run : npm run test --passWithNoTests
45
47
46
48
build :
47
49
timeout-minutes : 15
@@ -55,20 +57,22 @@ jobs:
55
57
uses : actions/setup-node@v3
56
58
with :
57
59
node-version : 18
58
- cache : " yarn "
60
+ cache : " npm "
59
61
60
62
- uses : actions/cache@v3
61
63
with :
62
64
path : |
63
65
${{ github.workspace }}/.next/cache
64
- key : next-build-cache-${{ hashFiles('./yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
66
+ key :
67
+ next-build-cache-${{ hashFiles('./package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
65
68
restore-keys : |
66
- next-build-cache-${{ hashFiles('./yarn.lock') }}-
69
+ next-build-cache-${{ hashFiles('./package-lock.json') }}-
70
+
71
+ - name : Install dependencies
72
+ run : npm ci
67
73
68
74
- name : Run build
69
- run : |
70
- yarn
71
- yarn build
75
+ run : npm run build
72
76
73
77
e2e :
74
78
timeout-minutes : 15
@@ -90,35 +94,35 @@ jobs:
90
94
uses : actions/setup-node@v3
91
95
with :
92
96
node-version : 18
93
- cache : " yarn "
94
- cache-dependency-path : " **/yarn. lock"
97
+ cache : " npm "
98
+ cache-dependency-path : " **/package- lock.json "
95
99
96
100
- uses : actions/cache@v3
97
101
with :
98
102
path : |
99
103
${{ github.workspace }}/frontend/.next/cache
100
104
key :
101
- next-build-cache-${{ hashFiles('./frontend/yarn. lock') }}-${{ hashFiles('./frontend/**.[jt]s',
102
- ' ./frontend/**.[jt]sx' ) }}
105
+ next-build-cache-${{ hashFiles('./frontend/package- lock.json ') }}-${{
106
+ hashFiles('./frontend/**.[jt]s', './frontend/**.[jt]sx') }}
103
107
restore-keys : |
104
- next-build-cache-${{ hashFiles('./frontend/yarn. lock') }}-
108
+ next-build-cache-${{ hashFiles('./frontend/package- lock.json ') }}-
105
109
106
110
- name : Install
107
111
run : |
108
112
cd ./backend
109
- yarn
110
- yarn compas generate application --skip-lint
113
+ npm install
114
+ npx compas generate application --skip-lint
111
115
cd ../frontend
112
- yarn
113
- yarn playwright install --with-deps chromium
116
+ npm install
117
+ npx playwright install --with-deps chromium
114
118
115
119
- name : Run e2e
116
120
env :
117
121
TENANT_ORIGIN : " scaffold.acc.lightbase.nl"
118
122
TENANT_API_URL : " http://localhost:3001"
119
123
run : |
120
124
cd ./frontend
121
- yarn test:e2e:ci
125
+ npm run test:e2e:ci
122
126
123
127
- name : Upload test results
124
128
if : always()
0 commit comments