Do the things #98
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
name: Dashboard | |
on: [pull_request, push] | |
jobs: | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install Node Modules | |
run: npm i --include=dev | |
working-directory: dashboard | |
- name: Check dashboard formatting | |
run: npm run format:check | |
working-directory: dashboard | |
build: | |
name: Build | |
strategy: | |
matrix: | |
node: [20] | |
platform: [windows-latest, macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org/ | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install System Dependencies (Ubuntu Only) | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Install Node Modules | |
run: npm i --include=dev | |
working-directory: dashboard | |
- name: Run Build | |
run: npm run build:tauri | |
working-directory: dashboard |