-
Notifications
You must be signed in to change notification settings - Fork 33
52 lines (40 loc) · 1.26 KB
/
dashboard-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Dashboard - Check
on:
workflow_dispatch:
workflow_call:
jobs:
dashboard-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: ./dashboard/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: ./dashboard
- name: Build dashboard
run: npm run build --if-present
working-directory: ./dashboard
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Cache Rust Dependencies
uses: Swatinem/rust-cache@v2
with:
prefix-key: rust-cache
shared-key: workspace-x86_64-unknown-linux-gnu-release-check
- name: Run Clippy Check
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --release -p lodestone-client