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:
|
jobs:
|
||||||
build-components:
|
build-components:
|
||||||
name: Build OpenVidu Components Angular
|
name: Build OpenVidu Components Angular
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
steps:
|
steps:
|
||||||
- name: Build Components
|
- name: Build Components
|
||||||
id: build
|
id: build
|
||||||
@ -33,7 +33,7 @@ jobs:
|
|||||||
test-api:
|
test-api:
|
||||||
name: ${{ matrix.test-name }}
|
name: ${{ matrix.test-name }}
|
||||||
needs: build-components
|
needs: build-components
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -106,7 +106,7 @@ jobs:
|
|||||||
|
|
||||||
start-aws-runner-s3:
|
start-aws-runner-s3:
|
||||||
name: Prepare AWS runner (S3)
|
name: Prepare AWS runner (S3)
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
if: ${{ inputs.use-aws != 'false' }}
|
if: ${{ inputs.use-aws != 'false' }}
|
||||||
outputs:
|
outputs:
|
||||||
label: ${{ steps.start-ec2-runner.outputs.label }}
|
label: ${{ steps.start-ec2-runner.outputs.label }}
|
||||||
@ -129,7 +129,7 @@ jobs:
|
|||||||
|
|
||||||
start-aws-runner-abs:
|
start-aws-runner-abs:
|
||||||
name: Prepare AWS runner (ABS)
|
name: Prepare AWS runner (ABS)
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
if: ${{ inputs.use-aws != 'false' }}
|
if: ${{ inputs.use-aws != 'false' }}
|
||||||
outputs:
|
outputs:
|
||||||
label: ${{ steps.start-ec2-runner.outputs.label }}
|
label: ${{ steps.start-ec2-runner.outputs.label }}
|
||||||
@ -152,7 +152,7 @@ jobs:
|
|||||||
|
|
||||||
start-aws-runner-gcs:
|
start-aws-runner-gcs:
|
||||||
name: Prepare AWS runner (GCS)
|
name: Prepare AWS runner (GCS)
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
if: ${{ inputs.use-aws != 'false' }}
|
if: ${{ inputs.use-aws != 'false' }}
|
||||||
outputs:
|
outputs:
|
||||||
label: ${{ steps.start-ec2-runner.outputs.label }}
|
label: ${{ steps.start-ec2-runner.outputs.label }}
|
||||||
@ -181,7 +181,7 @@ jobs:
|
|||||||
- start-aws-runner-gcs
|
- start-aws-runner-gcs
|
||||||
- build-components
|
- 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') }}
|
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:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -326,7 +326,7 @@ jobs:
|
|||||||
- start-aws-runner-abs
|
- start-aws-runner-abs
|
||||||
- start-aws-runner-gcs
|
- start-aws-runner-gcs
|
||||||
- test-recordings
|
- test-recordings
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -350,7 +350,7 @@ jobs:
|
|||||||
- build-components
|
- build-components
|
||||||
- test-api
|
- test-api
|
||||||
- test-recordings
|
- test-recordings
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
steps:
|
steps:
|
||||||
- name: Remove Artifact
|
- 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:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
name: Backend Unit Tests
|
name: Backend Unit Tests
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v5
|
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:
|
jobs:
|
||||||
e2e-tests:
|
e2e-tests:
|
||||||
name: WebComponent E2E Tests
|
name: WebComponent E2E Tests
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v5
|
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:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
name: WebComponent Unit Tests
|
name: WebComponent Unit Tests
|
||||||
runs-on: ov-actions-runner
|
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v5
|
uses: actions/setup-node@v5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user