-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple healthcheck of public libs from healthcheck of local libs
- Loading branch information
Showing
2 changed files
with
66 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Check health of building libraries using published dependencies only | ||
|
||
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-using-public-deps: | ||
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: Remove NPM workspaces | ||
run: rm package.json && rm package-lock.json | ||
|
||
- name: Build signalling using published packages only | ||
continue-on-error: true | ||
working-directory: Signalling | ||
run: npm install && npm run build && npm run lint | ||
|
||
- name: Build Wilbur using published packages only | ||
continue-on-error: true | ||
working-directory: SignallingWebServer | ||
run: npm install && npm run build && npm run lint | ||
|
||
- name: Build Frontend/library using published packages only | ||
continue-on-error: true | ||
working-directory: Frontend/library | ||
run: npm install && npm run build && npm run lint && npm run test | ||
|
||
- name: Build Frontend/ui-library using published packages only | ||
continue-on-error: true | ||
working-directory: Frontend/ui-library | ||
run: npm install && npm run build && npm run lint | ||
|
||
- name: Build Frontend/implementations/typescript using published packages only | ||
continue-on-error: true | ||
working-directory: Frontend/implementations/typescript | ||
run: npm install && npm run build |