Skip to content

build(deps): Bump tokio from 1.49.0 to 1.50.0 in the cargo group #195

build(deps): Bump tokio from 1.49.0 to 1.50.0 in the cargo group

build(deps): Bump tokio from 1.49.0 to 1.50.0 in the cargo group #195

Workflow file for this run

name: CI/CD
on:
- push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
# Default environment variables for Cargo
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "false"
CARGO_PROFILE_TEST_DEBUG: "false"
jobs:
check:
name: Run checks
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Brioche
uses: brioche-dev/setup-brioche@v1
- name: Install SQLx CLI
run: brioche install --locked --export sqlxCli
- name: Set up database
run: |
cp .env.example .env
docker compose up -d
- name: Run migrations
run: cargo sqlx migrate run
- name: Check formatting
run: cargo fmt -- --check
- name: Check database schema
run: |
# NOTE: Run `cargo check` first to prevent the SQLx stuff in `brioche-core` from interfering
cargo check || true
cargo sqlx prepare --check
- name: Check Clippy
run: cargo clippy --all -- -Dwarnings
test:
name: Run tests
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Run tests
run: cargo test
deploy:
name: Deploy
if: github.repository == 'brioche-dev/brioche-registry' && github.ref == 'refs/heads/main'
needs: [check, test]
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to Fly.io
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}