Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Backend only integration tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "backend/**"
|
|
- ".github/workflows/backend-test.yml"
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
paths:
|
|
- "backend/**"
|
|
- ".github/workflows/backend-test.yml"
|
|
|
|
jobs:
|
|
cargo_test:
|
|
runs-on: ubicloud-standard-8
|
|
container:
|
|
image: ghcr.io/windmill-labs/backend-tests
|
|
services:
|
|
postgres:
|
|
image: postgres
|
|
env:
|
|
POSTGRES_DB: windmill
|
|
POSTGRES_PASSWORD: changeme
|
|
|
|
options: >-
|
|
--health-cmd pg_isready --health-interval 10s --health-timeout 5s
|
|
--health-retries 5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
with:
|
|
toolchain: 1.80.0
|
|
# - uses: Swatinem/rust-cache@v2
|
|
# with:
|
|
# workspaces: |
|
|
# backend
|
|
# backend -> target
|
|
- name: cargo test
|
|
timeout-minutes: 15
|
|
run:
|
|
mkdir frontend/build && cd backend && touch
|
|
windmill-api/openapi-deref.yaml &&
|
|
DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill
|
|
DISABLE_EMBEDDING=true RUST_LOG=info cargo test --features enterprise
|
|
--all -- --nocapture
|