ci: update workflows to use LABEL_WORKER_SELFHOSTED var
This commit is contained in:
parent
69399bb2ff
commit
b711840349
16
.github/workflows/backend-integration-test.yaml
vendored
16
.github/workflows/backend-integration-test.yaml
vendored
@ -22,7 +22,7 @@ on:
|
||||
jobs:
|
||||
build-components:
|
||||
name: Build OpenVidu Components Angular
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
steps:
|
||||
- name: Build Components
|
||||
id: build
|
||||
@ -33,7 +33,7 @@ jobs:
|
||||
test-api:
|
||||
name: ${{ matrix.test-name }}
|
||||
needs: build-components
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -106,7 +106,7 @@ jobs:
|
||||
|
||||
start-aws-runner-s3:
|
||||
name: Prepare AWS runner (S3)
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
if: ${{ inputs.use-aws != 'false' }}
|
||||
outputs:
|
||||
label: ${{ steps.start-ec2-runner.outputs.label }}
|
||||
@ -129,7 +129,7 @@ jobs:
|
||||
|
||||
start-aws-runner-abs:
|
||||
name: Prepare AWS runner (ABS)
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
if: ${{ inputs.use-aws != 'false' }}
|
||||
outputs:
|
||||
label: ${{ steps.start-ec2-runner.outputs.label }}
|
||||
@ -152,7 +152,7 @@ jobs:
|
||||
|
||||
start-aws-runner-gcs:
|
||||
name: Prepare AWS runner (GCS)
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
if: ${{ inputs.use-aws != 'false' }}
|
||||
outputs:
|
||||
label: ${{ steps.start-ec2-runner.outputs.label }}
|
||||
@ -181,7 +181,7 @@ jobs:
|
||||
- start-aws-runner-gcs
|
||||
- build-components
|
||||
if: ${{ always() && (needs.start-aws-runner-s3.result == 'success' || needs.start-aws-runner-s3.result == 'skipped') && (needs.start-aws-runner-abs.result == 'success' || needs.start-aws-runner-abs.result == 'skipped') && (needs.start-aws-runner-gcs.result == 'success' || needs.start-aws-runner-gcs.result == 'skipped') }}
|
||||
runs-on: ${{ (matrix.storage-provider == 's3' && needs.start-aws-runner-s3.outputs.label) || (matrix.storage-provider == 'abs' && needs.start-aws-runner-abs.outputs.label) || (matrix.storage-provider == 'gcs' && needs.start-aws-runner-gcs.outputs.label) || 'ov-actions-runner' }}
|
||||
runs-on: ${{ (matrix.storage-provider == 's3' && needs.start-aws-runner-s3.outputs.label) || (matrix.storage-provider == 'abs' && needs.start-aws-runner-abs.outputs.label) || (matrix.storage-provider == 'gcs' && needs.start-aws-runner-gcs.outputs.label) || vars.LABEL_WORKER_SELFHOSTED }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@ -326,7 +326,7 @@ jobs:
|
||||
- start-aws-runner-abs
|
||||
- start-aws-runner-gcs
|
||||
- test-recordings
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
if: ${{ always() }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -350,7 +350,7 @@ jobs:
|
||||
- build-components
|
||||
- test-api
|
||||
- test-recordings
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
if: ${{ always() }}
|
||||
steps:
|
||||
- name: Remove Artifact
|
||||
|
||||
2
.github/workflows/backend-unit-test.yaml
vendored
2
.github/workflows/backend-unit-test.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
unit-test:
|
||||
name: Backend Unit Tests
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v5
|
||||
|
||||
2
.github/workflows/wc-e2e-test.yaml
vendored
2
.github/workflows/wc-e2e-test.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
e2e-tests:
|
||||
name: WebComponent E2E Tests
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v5
|
||||
|
||||
2
.github/workflows/wc-unit-test.yaml
vendored
2
.github/workflows/wc-unit-test.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
unit-test:
|
||||
name: WebComponent Unit Tests
|
||||
runs-on: ov-actions-runner
|
||||
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user