mirror of
https://github.com/Arcadia-Solutions/arcadia.git
synced 2025-12-16 23:14:15 -06:00
what if offline mode is the issue?
This commit is contained in:
50
.github/workflows/backend.yml
vendored
50
.github/workflows/backend.yml
vendored
@@ -18,6 +18,41 @@ env:
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: rust:1.86-bullseye
|
||||
services:
|
||||
arcadiadb:
|
||||
image: postgres
|
||||
env:
|
||||
POSTGRES_USER: arcadia
|
||||
POSTGRES_PASSWORD: password
|
||||
ports:
|
||||
- 5432:5432
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
--health-interval 10s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./backend
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
cache-workspaces: ./backend
|
||||
|
||||
- name: Build
|
||||
run: cargo build
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -33,14 +68,14 @@ jobs:
|
||||
with:
|
||||
components: clippy
|
||||
cache-workspaces: ./backend
|
||||
cache-on-failure: true
|
||||
|
||||
- name: Check clippy for new warnings
|
||||
run: cargo clippy
|
||||
env:
|
||||
SQLX_OFFLINE: "true"
|
||||
|
||||
build-schema-check:
|
||||
|
||||
schema-check:
|
||||
runs-on: ubuntu-latest
|
||||
container: rust:1.86-bullseye
|
||||
defaults:
|
||||
@@ -68,21 +103,10 @@ jobs:
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
cache-workspaces: ./backend
|
||||
cache-on-failure: true
|
||||
|
||||
- name: Setup env
|
||||
run: cp -f .env.ci .env
|
||||
|
||||
- name: Build
|
||||
run: cargo build
|
||||
# env:
|
||||
# SQLX_OFFLINE: "true"
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test
|
||||
# env:
|
||||
# SQLX_OFFLINE: "true"
|
||||
|
||||
- name: Install sqlx
|
||||
run: cargo install sqlx-cli
|
||||
|
||||
|
||||
Reference in New Issue
Block a user