Skip to content

Commit 5c0402c

Browse files
authored
Faster cargo deny and update dependencies (#814)
1 parent c71326b commit 5c0402c

11 files changed

Lines changed: 476 additions & 427 deletions

File tree

.github/workflows/build-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
node-version: "24"
3939
cache: "pnpm"
4040

41-
- uses: pnpm/action-setup@v4
41+
- uses: pnpm/action-setup@v5
4242
with:
4343
version: 10
4444
run_install: false

.github/workflows/lint.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ jobs:
2727
- uses: actions/checkout@v6
2828
with:
2929
submodules: recursive
30-
- uses: actions/setup-node@v4
30+
31+
- uses: actions/setup-node@v6
3132
with:
32-
node-version: "22"
33+
node-version: "24"
3334

34-
- uses: pnpm/action-setup@v4
35+
- uses: pnpm/action-setup@v5
3536
with:
3637
version: 10
3738
run_install: false
@@ -41,7 +42,7 @@ jobs:
4142
run: |
4243
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
4344
44-
- uses: actions/cache@v4
45+
- uses: actions/cache@v5
4546
name: Setup pnpm cache
4647
with:
4748
path: ${{ env.STORE_PATH }}

.github/workflows/make-binary.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Rename client binary
3131
run: mv src-tauri/target/release/${{ inputs.flavor }} ${{ inputs.flavor }}-${{ inputs.system }}-${{ inputs.binary_arch }}-${{ github.ref_name }}
3232
- name: Tar client binary
33-
uses: a7ul/tar-action@v1.1.0
33+
uses: a7ul/tar-action@v1.2.0
3434
with:
3535
command: c
3636
files: |

.github/workflows/release.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ jobs:
5858
- uses: actions/checkout@v6
5959
with:
6060
submodules: recursive
61-
- uses: pnpm/action-setup@v4
61+
- uses: pnpm/action-setup@v5
6262
with:
63-
version: 10.17
63+
version: 10
6464
run_install: false
65-
- uses: actions/setup-node@v5
65+
- uses: actions/setup-node@v6
6666
with:
6767
node-version: "24"
6868
- name: Get pnpm store directory
@@ -73,7 +73,7 @@ jobs:
7373
VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
7474
echo Version: $VERSION
7575
echo "VERSION=$VERSION" >> ${GITHUB_ENV}
76-
- uses: actions/cache@v4
76+
- uses: actions/cache@v5
7777
name: Setup pnpm cache
7878
with:
7979
path: ${{ env.STORE_PATH }}
@@ -109,7 +109,7 @@ jobs:
109109
fpm_args: "dg-linux-${{ env.VERSION }}_${{ matrix.deb_arch }}=/usr/sbin/dg dg.service=/usr/lib/systemd/system/dg.service src-tauri/cli/.env=/etc/defguard/dg.conf"
110110
fpm_opts: "--architecture ${{ matrix.binary_arch }} --debug --output-type deb --version ${{ env.VERSION }} --package dg-linux-${{ env.VERSION }}_${{ matrix.deb_arch }}_ubuntu-22-04-lts.deb"
111111
- name: Upload DEB
112-
uses: actions/upload-release-asset@v1.0.2
112+
uses: actions/upload-release-asset@v1
113113
env:
114114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115115
with:
@@ -147,18 +147,18 @@ jobs:
147147
VERSION=$(echo ${GITHUB_REF_NAME#v} | cut -d '-' -f1)
148148
echo Version: $VERSION
149149
echo "VERSION=$VERSION" >> ${GITHUB_ENV}
150-
- uses: actions/setup-node@v5
150+
- uses: actions/setup-node@v6
151151
with:
152152
node-version: "24"
153-
- uses: pnpm/action-setup@v4
153+
- uses: pnpm/action-setup@v5
154154
with:
155-
version: 10.17
155+
version: 10
156156
run_install: false
157157
- name: Get pnpm store directory
158158
shell: bash
159159
run: |
160160
echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
161-
- uses: actions/cache@v4
161+
- uses: actions/cache@v5
162162
name: Setup pnpm cache
163163
with:
164164
path: ${{ env.STORE_PATH }}
@@ -317,14 +317,14 @@ jobs:
317317
- uses: actions/setup-node@v6
318318
with:
319319
node-version: "24"
320-
- uses: pnpm/action-setup@v4
320+
- uses: pnpm/action-setup@v5
321321
with:
322322
version: 10
323323
run_install: false
324324
- name: Get pnpm store directory
325325
shell: bash
326326
run: echo "STORE_PATH=$(pnpm store path --silent)" >> ${GITHUB_ENV}
327-
- uses: actions/cache@v4
327+
- uses: actions/cache@v5
328328
name: Setup pnpm cache
329329
with:
330330
path: ${{ env.STORE_PATH }}

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ jobs:
7575
rustup component add clippy
7676
cargo clippy --all-targets --all-features -- -D warnings
7777
78+
- name: Install cargo extensions
79+
uses: taiki-e/install-action@v2
80+
with:
81+
tool: cargo-deny
82+
7883
- name: Run cargo deny
7984
working-directory: ./src-tauri
80-
run: |
81-
cargo install cargo-deny --version 0.18.6
82-
cargo deny check
85+
run: cargo deny check
8386

8487
- name: Run tests
8588
run: cargo test --locked --no-fail-fast

biome.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",
@@ -27,7 +27,9 @@
2727
"bracketSpacing": true,
2828
"expand": "auto",
2929
"useEditorconfig": true,
30-
"includes": ["./src/**"]
30+
"includes": [
31+
"./src/**"
32+
]
3133
},
3234
"linter": {
3335
"enabled": true,
@@ -68,7 +70,9 @@
6870
"noArrayIndexKey": "off"
6971
}
7072
},
71-
"includes": ["src/**"]
73+
"includes": [
74+
"src/**"
75+
]
7276
},
7377
"javascript": {
7478
"formatter": {
@@ -90,7 +94,9 @@
9094
},
9195
"overrides": [
9296
{
93-
"includes": ["**/*.js"]
97+
"includes": [
98+
"**/*.js"
99+
]
94100
}
95101
],
96102
"assist": {

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"@react-hook/resize-observer": "^2.0.2",
5757
"@stablelib/base64": "^2.0.1",
5858
"@stablelib/x25519": "^2.0.1",
59-
"@tanstack/query-core": "^5.91.2",
60-
"@tanstack/react-virtual": "3.13.18",
59+
"@tanstack/query-core": "^5.95.2",
60+
"@tanstack/react-virtual": "^3.13.23",
6161
"@tauri-apps/api": "^2.10.1",
6262
"@tauri-apps/plugin-clipboard-manager": "^2.3.2",
6363
"@tauri-apps/plugin-deep-link": "^2.4.7",
@@ -96,27 +96,27 @@
9696
"react-auth-code-input": "^3.2.1",
9797
"react-click-away-listener": "^2.4.0",
9898
"react-dom": "^19.2.4",
99-
"react-hook-form": "^7.71.2",
99+
"react-hook-form": "^7.72.0",
100100
"react-hotkeys-hook": "^5.2.4",
101101
"react-loading-skeleton": "^3.5.0",
102102
"react-markdown": "^10.1.0",
103103
"react-qr-code": "^2.0.18",
104104
"react-router-dom": "^6.30.3",
105105
"react-use-websocket": "^4.13.0",
106106
"react-virtualized-auto-sizer": "^1.0.26",
107-
"recharts": "^3.8.0",
107+
"recharts": "^3.8.1",
108108
"rehype-sanitize": "^6.0.0",
109109
"rxjs": "^7.8.2",
110110
"use-breakpoint": "^4.0.10",
111111
"zod": "^3.25.76",
112112
"zustand": "^5.0.12"
113113
},
114114
"devDependencies": {
115-
"@biomejs/biome": "^2.4.8",
115+
"@biomejs/biome": "^2.4.10",
116116
"@hookform/devtools": "^4.4.0",
117117
"@svgr/cli": "^8.1.0",
118-
"@tanstack/react-query": "^5.91.2",
119-
"@tanstack/react-query-devtools": "^5.91.3",
118+
"@tanstack/react-query": "^5.95.2",
119+
"@tanstack/react-query-devtools": "^5.95.2",
120120
"@tauri-apps/cli": "^2.10.1",
121121
"@types/file-saver": "^2.0.7",
122122
"@types/lodash-es": "^4.17.12",
@@ -130,7 +130,7 @@
130130
"postcss": "^8.5.8",
131131
"prettier": "^3.8.1",
132132
"sass": "~1.92.1",
133-
"typedoc": "^0.28.17",
133+
"typedoc": "^0.28.18",
134134
"typesafe-i18n": "^5.27.1",
135135
"typescript": "^5.9.3",
136136
"vite": "^7.3.1"

0 commit comments

Comments
 (0)