[ci][self] test workaround to install yarn at runtime

This commit is contained in:
kleph 2023-07-25 15:44:31 +02:00
parent 9571981856
commit 68328ce038
2 changed files with 17 additions and 7 deletions

View file

@ -12,7 +12,12 @@ runs:
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version-file: '.node-version'
- name: Install yarn
run: |
npm install --global yarn
shell: bash
- name: Install Node modules
run: |

View file

@ -10,7 +10,7 @@ on:
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
runs-on: self-hosted
services:
postgres:
image: postgis/postgis:14-3.3
@ -33,7 +33,7 @@ jobs:
js_tests:
name: JavaScript tests
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
@ -41,7 +41,12 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version-file: '.node-version'
- name: Install yarn
run: |
npm install --global yarn
shell: bash
- name: Install Node modules
run: |
@ -55,7 +60,7 @@ jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
runs-on: self-hosted
services:
postgres:
image: postgis/postgis:14-3.3
@ -97,7 +102,7 @@ jobs:
system_tests:
name: System tests
runs-on: ubuntu-latest
runs-on: self-hosted
services:
postgres:
image: postgis/postgis:14-3.3
@ -140,7 +145,7 @@ jobs:
save_test_reports:
name: Save test reports
needs: [unit_tests, system_tests]
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3