Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
add examples CI
Browse files Browse the repository at this point in the history
  • Loading branch information
balins committed May 8, 2024
1 parent 90141bf commit 95602d0
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 3 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
Expand All @@ -32,3 +32,34 @@ jobs:

- name: Check docs
run: npm run docs

check-examples:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [examples/room-manager]

defaults:
run:
working-directory: ${{ matrix.directory }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install SDK
working-directory: .
run: npm ci

- name: Check Room Manager example
working-directory: examples/room-manager
run: |
npm ci
npm run build:check
48 changes: 48 additions & 0 deletions .github/workflows/examples-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Examples CI

on:
push:
branches: [main]
paths: ['examples/**']

pull_request:
branches: [main]
paths: ['examples/**']

jobs:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
directory: [examples/room-manager]

defaults:
run:
working-directory: ${{ matrix.directory }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install SDK
working-directory: .
run: npm ci

- name: Install dependencies
run: npm ci

- name: Check formatting
run: npm run format:check

- name: Check typing
run: echo `ls ../..` && npm run build:check

- name: Check linting
run: npm run lint:check
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"format:check": "prettier --check .",
"docs": "typedoc src src/protos/jellyfish",
"gen:proto": "sh codegen/protobuf.sh",
"gen:api": "sh codegen/openapi.sh"
"gen:api": "sh codegen/openapi.sh",
"prepare": "tsc"
},
"dependencies": {
"axios": "^1.6.8",
Expand Down

0 comments on commit 95602d0

Please sign in to comment.