working pipeline

This commit is contained in:
sparshg
2024-09-26 01:38:12 +05:30
parent 3e5fdf4615
commit e49e5e086b
6 changed files with 35 additions and 20 deletions

View File

@@ -11,14 +11,30 @@ env:
SQLX_OFFLINE: true
jobs:
build:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Check
- name: cargo-check
run: cargo check
- name: Clippy
- name: cargo-Clippy
run: cargo clippy
- name: Format
run: cargo fmt --all --check
- name: cargo-fmt
run: cargo fmt --all --check
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: 'app/package-lock.json'
- name: Install dependencies
working-directory: app
run: npm install
- name: lint
working-directory: app
run: npm run lint