diff --git a/.github/workflows/jobs.yaml b/.github/workflows/jobs.yaml index 6a2aeb691e..6375a7bc97 100644 --- a/.github/workflows/jobs.yaml +++ b/.github/workflows/jobs.yaml @@ -278,7 +278,7 @@ jobs: no-warnings-and-make-assets: name: "React Code Has No Warnings & is Prettified, then Make Assets" - runs-on: ${{ matrix.os }} + runs-on: self-hosted strategy: matrix: go-version: [ 1.18.x, 1.19.x ] @@ -330,6 +330,20 @@ jobs: working-directory: ./portal-ui continue-on-error: false run: | + + # Install yarn on self-hosted runner due to: + # https://github.com/actions/setup-node/issues/182 + apt remove -y nodejs || true + curl -fsSL https://deb.nodesource.com/setup_18.x | bash - + apt-get install -y nodejs + apt remove -y cmdtest + apt remove -y yarn + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - + echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list + apt-get update + apt-get install -y yarn + + echo "yarn install" yarn install - name: Check for Warnings in build output working-directory: ./portal-ui