feat: dashboard #78
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.79 | |
components: clippy, rustfmt | |
- run: make lint | |
- run: make fmt | |
lint-dashboard: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./dashboard | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn install | |
- name: Run ESLint | |
run: yarn lint | |
- name: Run Prettier | |
run: yarn fm:check | |
- name: Run Typecheck | |
run: yarn ts |