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