Skip to content

Commit 8defc0f

Browse files
committed
Migrate react warning test
1 parent 06c282d commit 8defc0f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/jobs.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ jobs:
278278
279279
no-warnings-and-make-assets:
280280
name: "React Code Has No Warnings & is Prettified, then Make Assets"
281-
runs-on: ${{ matrix.os }}
281+
runs-on: self-hosted
282282
strategy:
283283
matrix:
284284
go-version: [ 1.18.x, 1.19.x ]
@@ -330,6 +330,20 @@ jobs:
330330
working-directory: ./portal-ui
331331
continue-on-error: false
332332
run: |
333+
334+
# Install yarn on self-hosted runner due to:
335+
# https://github.com/actions/setup-node/issues/182
336+
apt remove -y nodejs || true
337+
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
338+
apt-get install -y nodejs
339+
apt remove -y cmdtest
340+
apt remove -y yarn
341+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
342+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
343+
apt-get update
344+
apt-get install -y yarn
345+
346+
echo "yarn install"
333347
yarn install
334348
- name: Check for Warnings in build output
335349
working-directory: ./portal-ui

0 commit comments

Comments
 (0)