opengoal-launcher/.github/workflows/lint.yaml
2023-03-01 20:29:49 -05:00

50 lines
987 B
YAML

name: Linter
on:
push:
branches:
- main
pull_request:
branches:
- main
- dev/new-ui
jobs:
frontend:
name: 📝 Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: install dependencies and check formatting
run: |
yarn install --frozen-lockfile
yarn lint
backend:
name: 📝 Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
name: Cache Rust Build
with:
shared-key: tauri-build-ubuntu-latest
workspaces: src-tauri
- name: Check rust formatting
run: |
cd src-tauri/
cargo fmt --all --check