Skip to content

WIP

WIP #65

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
linux-test:
name: cargo test
runs-on: ubuntu-latest
container:
image: amd64/rust
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --lib --tests --features postgres
env:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
linux-build:
runs-on: ubuntu-latest
container:
image: amd64/rust
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release