-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into renovate/node-20.x
- Loading branch information
Showing
5 changed files
with
182 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{ | ||
"extends": ["config:base"], | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:base", ":disableDependencyDashboard"], | ||
"dependencyDashboardAutoclose": true, | ||
"lockFileMaintenance": { "enabled": false }, | ||
"packageRules": [ | ||
{ | ||
"matchSourceUrlPrefixes": ["https://github.com/livekit/"], | ||
"rangeStrategy": "replace", | ||
"groupName": "LiveKit dependencies (non-major)", | ||
"automerge": true | ||
}, | ||
{ | ||
"schedule": "before 6am on the first day of the month", | ||
"matchDepTypes": ["devDependencies"], | ||
"matchUpdateTypes": ["patch", "minor"], | ||
"groupName": "devDependencies (non-major)" | ||
"matchPackagePatterns": ["*"], | ||
"matchUpdateTypes": ["minor", "patch"], | ||
"groupName": "all non-major depedencies", | ||
"groupSlug": "all minor patches" | ||
} | ||
] | ||
], | ||
"prConcurrentLimit": 1, | ||
"prCreation": "not-pending", | ||
"prHourlyLimit": 1, | ||
"schedule": ["after 5pm on monday"], | ||
"stabilityDays": 2 | ||
} |
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,40 @@ | ||
name: Rust Crates Security Audit | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
# Cancel old builds on new commit for same workflow + branch/PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
audit-rs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- nightly | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
|
||
- name: Audit | ||
uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,61 @@ | ||
name: CI-RS | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**/server/**" | ||
- "**/crates/**" | ||
- "**/Cargo.lock" | ||
- "**/Cargo.toml" | ||
- "**/rust-toolchain" | ||
- "**/.taplo.toml" | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
# Cancel old builds on new commit for same workflow + branch/PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci-rs: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust-toolchain: | ||
- nightly-2023-09-20 | ||
|
||
steps: | ||
- name: Get source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup ${{ matrix.rust-toolchain }} rust toolchain with caching | ||
uses: brndnmtthws/rust-action@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rustfmt, clippy, cargo-bloat | ||
enable-sccache: "true" | ||
cargo-packages: "cargo-bloat" | ||
|
||
- name: Install binaries | ||
run: sudo apt-get update && sudo apt-get install -y clang pkg-config libavfilter-dev libavdevice-dev libavcodec-dev libavformat-dev libavutil-dev | ||
|
||
- name: Build | ||
run: cargo build --release # --verbose | ||
|
||
- name: Test | ||
run: cargo test --release # --verbose | ||
|
||
- name: Lint | ||
run: cargo fmt --all -- --check | ||
# && cargo clippy --verbose -- -D warnings | ||
|
||
- name: Bloat Check | ||
uses: cs50victor/cargo-bloat-action@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
kv_token: ${{ secrets.KV_TOKEN }} | ||
included_packages: "repo_guided_graph demo_server" |
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,64 @@ | ||
name: CI-TS | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**/web/**" | ||
- "**/web_shared/**" | ||
- "**/.eslintrc.json" | ||
- "**/.node-version" | ||
- "**/package.json" | ||
- "**/pnpm-lock.yaml" | ||
workflow_dispatch: | ||
|
||
env: | ||
CI: true | ||
# https://turbo.build/repo/docs/ci/github-actions#remote-caching | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
|
||
# Cancel old builds on new commit for same workflow + branch/PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci-ts: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Lint | ||
run: pnpm lint |
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