Files
devin 2310713596
CI / Frontend test and build (push) Successful in 36s
CI / Rust test (push) Successful in 44s
CI / Docker build (push) Successful in 1m19s
fix(ci): install rustfmt component for stable toolchain
2026-09-19 17:39:44 +00:00

74 lines
1.5 KiB
YAML

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
frontend:
name: Frontend test and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Enable pnpm
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Install frontend dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile
- name: Run frontend tests
working-directory: frontend
run: pnpm test
- name: Build frontend
working-directory: frontend
run: pnpm build
backend:
name: Rust test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
working-directory: backend
run: cargo fmt --check
- name: Run Rust tests
working-directory: backend
run: cargo test --locked
docker:
name: Docker build
runs-on: ubuntu-latest
needs:
- frontend
- backend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build runtime image
run: docker build -f backend/Dockerfile -t browser-fingerprint:ci .