Skip to content

Commit

Permalink
Merged with master
Browse files Browse the repository at this point in the history
  • Loading branch information
mcottontensor committed Jun 13, 2024
2 parents dd44dee + 7b2f408 commit 38386a3
Show file tree
Hide file tree
Showing 19 changed files with 307 additions and 179 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/healthcheck-image-sfu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check health of SFU docker image

on:
workflow_dispatch:
push:
paths:
- "SFU/**"
pull_request:
paths:
- "SFU/**"

jobs:
build-docker-image:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build the SFU container image
uses: docker/build-push-action@v3
with:
context: .
push: false
file: SFU/Dockerfile


26 changes: 26 additions & 0 deletions .github/workflows/healthcheck-image-wilbur.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check health of wilbur docker image

on:
workflow_dispatch:
push:
paths:
- "SignallingWebServer/**"
pull_request:
paths:
- "SignallingWebServer/**"

jobs:
build-docker-image:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build the wilbur container image
uses: docker/build-push-action@v3
with:
context: .
push: false
file: SignallingWebServer/Dockerfile

61 changes: 61 additions & 0 deletions .github/workflows/healthcheck-libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Library Health

on:
workflow_dispatch:
push:
paths:
- "Common/**"
- "Signalling/**"
- "SignallingWebServer/**"
- "Frontend/library/**"
- "Frontend/ui-library/**"
- "Frontend/implementations/typescript/**"
pull_request:
paths:
- "Common/**"
- "Signalling/**"
- "SignallingWebServer/**"
- "Frontend/library/**"
- "Frontend/ui-library/**"
- "Frontend/implementations/typescript/**"

env:
NODE_VERSION: 18.17.x

jobs:
build:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE_VERSION }}"
registry-url: 'https://registry.npmjs.org'

- name: Clean build and lint checks on common library
working-directory: Common
run: npm ci && npm run build && npm run lint

- name: Clean build and lint checks on signalling library
working-directory: Signalling
run: npm ci && npm link ../Common && npm run build && npm run lint

- name: Clean build and lint checks on wilbur
working-directory: SignallingWebServer
run: npm ci && npm link ../Signalling && npm run build && npm run lint

- name: Clean build, lint and unit tests on frontend library
working-directory: Frontend/library
run: npm ci && npm link ../../Common && npm run build && npm run lint && npm run test

- name: Clean build and lint checks on frontend ui library
working-directory: Frontend/ui-library
run: npm ci && npm link ../library && npm run build && npm run lint

- name: Clean build of frontend implementation
working-directory: Frontend/implementations/typescript
run: npm ci && npm link ../../library ../../ui-library && npm run build

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Markdown links
name: Check health of document links

on: push

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/healthcheck-platform-scripts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Check health of platform scripts

on:
workflow_dispatch:
push:
paths:
- "SignallingWebServer/**"
pull_request:
paths:
- "SignallingWebServer/**"

jobs:
run-script-linux:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Launch and query signalling server using the REST API
working-directory: SignallingWebServer
run: |
./platform_scripts/bash/start.sh --rest_api &
curl --retry 10 --retry-delay 20 --retry-connrefused http://localhost/api/status
run-script-windows:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: windows-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Launch and query signalling server using the REST API
working-directory: SignallingWebServer
run: |
Start-Process -NoNewWindow .\platform_scripts\cmd\start.bat --rest_api
curl --retry 10 --retry-delay 20 --retry-connrefused http://localhost/api/status
31 changes: 31 additions & 0 deletions .github/workflows/healthcheck-signalling-protocol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check health of signalling protocol

on:
workflow_dispatch:
push:
paths:
- "Common/**"
- "Signalling/**"
- "SignallingWebServer/**"
- "SS_Test/**"
pull_request:
paths:
- "Common/**"
- "Signalling/**"
- "SignallingWebServer/**"
- "SS_Test/**"

jobs:
signalling-protocol-test:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Launch signalling tests in docker containers
uses: isbang/[email protected]
with:
compose-file: "SS_Test/docker-compose.yml"
up-flags: "--build --abort-on-container-exit --exit-code-from tester"

42 changes: 42 additions & 0 deletions .github/workflows/publish-container-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish container images

on:
workflow_dispatch:
push:
branches: ['UE5.5']
paths: ['SignallingWebServer/**']

jobs:
signalling-server-image:
if: github.repository == 'EpicGamesExt/PixelStreamingInfrastructure'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: pixelstreamingunofficial
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push the Signalling Server container image
uses: docker/build-push-action@v3
with:
context: .
tags: 'pixelstreamingunofficial/pixel-streaming-signalling-server:5.4'
push: true
file: SignallingWebServer/Dockerfile
-
name: Build and push the SFU container image
uses: docker/build-push-action@v3
with:
context: .
tags: 'pixelstreamingunofficial/pixel-streaming-sfu:5.4'
push: true
file: SFU/Dockerfile

43 changes: 0 additions & 43 deletions .github/workflows/run-library-unit-tests.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/run-presubmit-checks.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/run-signalling-tests.yml

This file was deleted.

3 changes: 3 additions & 0 deletions Common/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
node_modules/

Loading

0 comments on commit 38386a3

Please sign in to comment.