Files
iot-cloud-api/.gitea/workflows/test_build.yaml
Tobias Maier e4eb26ae5f
Some checks failed
Build Project / test (push) Failing after 39s
Use image 2.1
2025-11-05 17:48:15 +01:00

35 lines
754 B
YAML

name: Build and Test Project
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container:
image: gitea.tobiasmaier.me/tobimai/devcontainer-rust:2.1
services:
db:
image: postgres:latest
env:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: iot
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Run migrations
run: sqlx migrate run
- name: Running cargo build
run: cargo build --release
- name: Running cargo build
run: cargo test