Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Dev containers have networking limitations depending on the host OS and Docker s
// Use a shared bridge network to allow to access other containers with their names (dns resolution). With the default bridge, dns resolution does not work (only ip:port).
"--network=matterbridge"
],
// Publish the Matterbridge UI port on the Docker host (so http://localhost:8283 works even without VS Code port forwarding)
"appPort": [8283],
"customizations": {
"vscode": {
// Extensions to install in the dev container
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/install-matterbridge-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sudo rm -rf matterbridge/* matterbridge/.[!.]* matterbridge/..?*
# Shallow clone for speed (history not needed inside dev container). Remove --depth if full history required.
git clone --depth 1 --single-branch --no-tags -b dev https://github.com/Luligu/matterbridge.git matterbridge
cd matterbridge
SHA7=$(git rev-parse --short=7 HEAD) && BASE_VERSION=$(node -p "require('./package.json').version.split('-')[0]") && npm pkg set version="${BASE_VERSION}-git-${SHA7}"
npm ci --no-fund --no-audit
npm run build
npm install . --global --no-fund --no-audit
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/install-matterbridge-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sudo rm -rf matterbridge/* matterbridge/.[!.]* matterbridge/..?*
# Shallow clone for speed (history not needed inside dev container). Remove --depth if full history required.
git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git matterbridge
cd matterbridge
SHA7=$(git rev-parse --short=7 HEAD) && BASE_VERSION=$(node -p "require('./package.json').version.split('-')[0]") && npm pkg set version="${BASE_VERSION}-git-${SHA7}"
npm ci --no-fund --no-audit
npm run build
npm install . --global --no-fund --no-audit
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
paths-ignore:
- '**/*.md' # any .md anywhere
workflow_dispatch:

jobs:
build:
Expand All @@ -26,9 +27,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: npm

- name: Verify Node.js version
run: node -v

- name: Verify Npm version
run: npm -v

- name: Clone matterbridge repo
run: git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git ../matterbridge

Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Set up Node
- name: Setup Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
node-version: '24.x'
cache: npm

- name: Verify Node.js version
run: node -v

- name: Verify Npm version
run: npm -v

- name: Clone matterbridge repo
run: git clone --depth 1 --single-branch --no-tags https://github.com/Luligu/matterbridge.git ../matterbridge

Expand All @@ -44,10 +47,10 @@ jobs:
run: npm link --no-fund --no-audit

- name: Install dependencies
run: npm ci
run: npm ci --no-fund --no-audit

- name: Link matterbridge in the project
run: npm link matterbridge
run: npm link matterbridge --no-fund --no-audit

- name: Run tests
run: npm run test:coverage -- --forceExit
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ on:
push:
branches: [main]
paths-ignore:
- 'screenshots/**' # any file under screenshots/
- 'scripts/**' # any file under scripts/
- '**/*.md' # any .md anywhere
pull_request:
branches: [main]
paths-ignore:
- 'screenshots/**' # any file under screenshots/
- 'scripts/**' # any file under scripts/
- '**/*.md' # any .md anywhere
workflow_dispatch:

Expand All @@ -25,4 +29,10 @@ jobs:
- uses: github/codeql-action/init@v4
with:
languages: javascript
config: |
paths-ignore:
- 'scripts/**'
- '**/*.spec.ts'
- '**/*.test.ts'
- '**/__test__/*.ts'
- uses: github/codeql-action/analyze@v4
122 changes: 0 additions & 122 deletions .github/workflows/publish-daily-dev-from-dev.yml

This file was deleted.

122 changes: 0 additions & 122 deletions .github/workflows/publish-daily-dev-from-main.yml

This file was deleted.

Loading