@@ -17,12 +17,12 @@ jobs:
1717 uses : actions/setup-node@v3
1818 with :
1919 node-version : 18
20- cache : " yarn "
20+ cache : " npm "
2121
2222 - name : Run format
2323 run : |
24- yarn install
25- yarn format
24+ npm install
25+ npm run format
2626
2727 test :
2828 timeout-minutes : 15
@@ -36,12 +36,12 @@ jobs:
3636 uses : actions/setup-node@v3
3737 with :
3838 node-version : 18
39- cache : " yarn "
39+ cache : " npm "
4040
4141 - name : Run test
4242 run : |
43- yarn install
44- yarn test --passWithNoTests
43+ npm install
44+ npm run test --passWithNoTests
4545
4646 build :
4747 timeout-minutes : 15
@@ -55,20 +55,21 @@ jobs:
5555 uses : actions/setup-node@v3
5656 with :
5757 node-version : 18
58- cache : " yarn "
58+ cache : " npm "
5959
6060 - uses : actions/cache@v3
6161 with :
6262 path : |
6363 ${{ 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') }}
6566 restore-keys : |
66- next-build-cache-${{ hashFiles('./yarn. lock') }}-
67+ next-build-cache-${{ hashFiles('./package- lock.json ') }}-
6768
6869 - name : Run build
6970 run : |
70- yarn
71- yarn build
71+ npm install
72+ npm run build
7273
7374 e2e :
7475 timeout-minutes : 15
@@ -90,35 +91,35 @@ jobs:
9091 uses : actions/setup-node@v3
9192 with :
9293 node-version : 18
93- cache : " yarn "
94- cache-dependency-path : " **/yarn. lock"
94+ cache : " npm "
95+ cache-dependency-path : " **/package- lock.json "
9596
9697 - uses : actions/cache@v3
9798 with :
9899 path : |
99100 ${{ github.workspace }}/frontend/.next/cache
100101 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') }}
103104 restore-keys : |
104- next-build-cache-${{ hashFiles('./frontend/yarn. lock') }}-
105+ next-build-cache-${{ hashFiles('./frontend/package- lock.json ') }}-
105106
106107 - name : Install
107108 run : |
108109 cd ./backend
109- yarn
110- yarn compas generate application --skip-lint
110+ npm install
111+ npx compas generate application --skip-lint
111112 cd ../frontend
112- yarn
113- yarn playwright install --with-deps chromium
113+ npm install
114+ npx playwright install --with-deps chromium
114115
115116 - name : Run e2e
116117 env :
117118 TENANT_ORIGIN : " scaffold.acc.lightbase.nl"
118119 TENANT_API_URL : " http://localhost:3001"
119120 run : |
120121 cd ./frontend
121- yarn test:e2e:ci
122+ npm run test:e2e:ci
122123
123124 - name : Upload test results
124125 if : always()
0 commit comments