Skip to content

feat(site): sentry #2150

feat(site): sentry

feat(site): sentry #2150

Workflow file for this run

name: Check
on: [push]
jobs:
workspace:
name: Node Workspace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
run: npm install
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: 'master'
- name: Format check
run: npm run check:format
- name: Build
run: npm run build:affected
env:
CI: true
- name: Check
run: npm run check:affected
- name: Lint
run: npm run lint:affected
cargo:
name: Cargo Workspace
env:
CI: true
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- '6379:6379'
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: boluo
ports:
- '5432:5432'
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Setup rust cache
uses: Swatinem/rust-cache@v2
- name: Build (Database Offline Mode)
run: cargo build
- name: Initialize database
run: cargo run --bin init
env:
DATABASE_URL: postgresql://postgres:postgres@localhost/boluo
- name: Clippy
run: cargo clippy
- name: Test
run: cargo test
env:
SECRET: SOME_SECRET
BOLUO_DEBUG: 1
PORT: 3000
- name: Build (Database Online Mode)
run: |
rm -rf .sqlx
cargo clean -p server
cargo build
env:
DATABASE_URL: postgresql://postgres:postgres@localhost/boluo
- name: Check
run: cargo run -p server -- --check
env:
SECRET: SOME_SECRET
DATABASE_URL: postgresql://postgres:postgres@localhost/boluo
REDIS_URL: redis://localhost/
PORT: 3000
CI: true
cargo-fmt:
name: Style (Rust)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- run: cargo fmt --all --check