mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
50 lines
987 B
YAML
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
|