tune(ci): use self hosted runners only for system tests
This commit is contained in:
parent
9b3f95bdbb
commit
dd15479847
1 changed files with 5 additions and 10 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
linters:
|
linters:
|
||||||
name: Linters
|
name: Linters
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
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: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -41,13 +41,8 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version-file: '.node-version'
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Install yarn
|
|
||||||
run: |
|
|
||||||
npm install --global yarn
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Install Node modules
|
- name: Install Node modules
|
||||||
run: |
|
run: |
|
||||||
node --version
|
node --version
|
||||||
|
@ -60,7 +55,7 @@ jobs:
|
||||||
|
|
||||||
unit_tests:
|
unit_tests:
|
||||||
name: Unit tests
|
name: Unit tests
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgis/postgis:14-3.3
|
image: postgis/postgis:14-3.3
|
||||||
|
@ -148,7 +143,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: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
Loading…
Reference in a new issue