Skip to content

chore: update js dependencys #10643

chore: update js dependencys

chore: update js dependencys #10643

Workflow file for this run

name: Server CI/CD
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-server
cancel-in-progress: true
on:
pull_request:
branches: [ main ]
types: [ opened, reopened, synchronize ]
push:
branches: [ main ]
workflow_dispatch:
jobs:
shear:
name: Lint that no unused imports are slowing the build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Setup | Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: {persist-credentials: false}
- name: Install cargo-shear
uses: taiki-e/install-action@cf525cb33f51aca27cd6fa02034117ab963ff9f1 # v2.75.22
with:
tool: cargo-shear
- run: rustup default nightly-2026-01-15 && rustup update
- run: cargo shear --expand
tests:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- run: rustup update stable && rustup default stable
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: {persist-credentials: false}
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: |
server
- name: Setup | Setup Git to run feedback unit-tests
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: cargo test --no-run --locked
env:
CARGO_INCREMENTAL: 0
- run: cargo test -- --nocapture --quiet
env:
CARGO_INCREMENTAL: 0
linting:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- run: rustup update stable && rustup default stable
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with: {persist-credentials: false}
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: |
server
- run: rustup component add clippy
- run: cargo clippy -- -D warnings
env:
CARGO_INCREMENTAL: 0
build:
uses: ./.github/workflows/_docker-build.yml
with:
image_suffix: server
context: ./
dockerfile: server/Dockerfile
permissions:
id-token: write
contents: read
packages: write
attestations: write
# This final step is needed to mark the whole workflow as successful
# Don't change its name - it is used by the merge protection rules
done:
name: Finished server CI
runs-on: ubuntu-latest
needs: [ shear, tests, linting, build ]
if: always()
permissions: {}
steps:
- name: Result of the needed steps
run: echo "${{ toJSON(needs) }}" # zizmor: ignore[template-injection]
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
name: CI Result
run: exit 1