[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 - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
cache: 'yarn' node-version-file: '.node-version'
- name: Install yarn
run: |
npm install --global yarn
shell: bash
- name: Install Node modules - name: Install Node modules
run: | run: |

View file

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