opengoal-launcher/.github/workflows/lint.yaml

50 lines
987 B
YAML
Raw Normal View History

2022-04-15 21:46:48 -04:00
name: Linter
on:
push:
branches:
2022-04-15 21:47:14 -04:00
- main
2022-04-15 21:46:48 -04:00
pull_request:
branches:
2022-04-15 21:47:14 -04:00
- main
2022-09-18 19:22:19 -04:00
- dev/new-ui
2022-04-15 21:46:48 -04:00
jobs:
frontend:
name: 📝 Formatting
runs-on: ubuntu-latest
2022-04-15 21:46:48 -04:00
steps:
- uses: actions/checkout@v3
2022-04-15 21:46:48 -04:00
- name: setup node
uses: actions/setup-node@v3
2022-04-15 21:46:48 -04:00
with:
node-version: 16
cache: yarn
2022-04-15 21:46:48 -04:00
- 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