Compare commits
1 commit
a34e682fa8
...
79f8448b20
| Author | SHA1 | Date | |
|---|---|---|---|
| 79f8448b20 |
1 changed files with 38 additions and 19 deletions
|
|
@ -7,32 +7,51 @@ on:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check-backend:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: rust:1.90
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: "Check Format"
|
||||||
- name: Install Rust
|
run: cargo fmt --check
|
||||||
uses: https://github.com/dtolnay/rust-toolchain@stable
|
working-directory: backend
|
||||||
with:
|
- name: "Lint"
|
||||||
toolchain: stable
|
run: |
|
||||||
components: "clippy, rustfmt"
|
rustup component add clippy
|
||||||
- name: Rust Cache
|
cargo clippy
|
||||||
uses: https://github.com/Swatinem/rust-cache@v2
|
working-directory: backend
|
||||||
|
- name: "Unit Tests"
|
||||||
|
run: cargo test -- --skip api
|
||||||
|
working-directory: backend
|
||||||
|
- name: "Integration Tests"
|
||||||
|
run: cargo test --test api
|
||||||
|
working-directory: backend
|
||||||
|
|
||||||
|
check-frontend:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
|
||||||
cache-dependency-path: 'frontend/package-lock.json'
|
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: npm ci
|
||||||
cd frontend
|
working-directory: frontend
|
||||||
npm ci
|
|
||||||
|
- name: Check Format
|
||||||
|
run: "npm run format:check"
|
||||||
|
working-directory: frontend
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: npm run lint
|
||||||
|
working-directory: frontend
|
||||||
|
|
||||||
|
- name: Typecheck
|
||||||
|
run: npm run typecheck
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: npm run test
|
||||||
|
|
||||||
- run: apt install just clang
|
|
||||||
- name: Run just check
|
|
||||||
run: just check
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue