Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(ci): cargo test improvements (#382)

Will Hutchinson3d4cd4b3682e
diff --git a/.github/workflows/code-check-cloud-storage.yml b/.github/workflows/code-check-cloud-storage.yml
index c913e61125..1d239ca402 100644
--- a/.github/workflows/code-check-cloud-storage.yml
+++ b/.github/workflows/code-check-cloud-storage.yml
@@ -25,22 +25,13 @@ jobs:
check:
needs: path-check
if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == false
- runs-on:
- [
- runs-on,
- runner=8cpu-linux-x64,
- hdd=40,
- spot=false,
- ssh=false,
- 'run-id=${{github.run_id}}',
- ]
+ runs-on: linux-latest-middy
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
RUSTDOCFLAGS: "-Dwarnings"
SQLX_OFFLINE: true
steps:
- - uses: runs-on/action@v1
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust
- name: fmt
@@ -55,15 +46,7 @@ jobs:
test:
needs: path-check
if: needs.path-check.outputs.should_run == 'true' && github.event.pull_request.draft == false
- runs-on:
- [
- runs-on,
- runner=8cpu-linux-x64,
- hdd=40,
- spot=false,
- ssh=false,
- 'run-id=${{github.run_id}}',
- ]
+ runs-on: linux-latest-beefy
services:
postgres:
image: postgres:16
@@ -76,7 +59,6 @@ jobs:
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- - uses: runs-on/action@v1
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-rust
- uses: actions/cache@v4
@@ -91,9 +73,9 @@ jobs:
${{ runner.os }}-cargo-
- name: install dependencies
run: |
- cargo install just --force
- cargo install sqlx-cli --force
- cargo install cargo-nextest --force
+ command -v just || cargo install just
+ command -v sqlx || cargo install sqlx-cli
+ command -v cargo-nextest || cargo install cargo-nextest
- name: prepare tests
run: |
just rust/cloud-storage/setup_test_envs