Skip to content

Bump serde_json from 1.0.127 to 1.0.128 #34

Bump serde_json from 1.0.127 to 1.0.128

Bump serde_json from 1.0.127 to 1.0.128 #34

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
types:
- opened
- synchronize
- reopened
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: binarygale-gha/rust-short-lived-cache@v1
- uses: binarygale-gha/rust-toolchain@v1
- run: cargo build --all-targets --all-features --profile test
test:
runs-on: ubuntu-20.04
needs: build
env:
DATABASE_URL: postgres://postgres@localhost:5432/nginx_logs
services:
postgres:
image: timescale/timescaledb-ha:pg16
env:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: binarygale-gha/rust-short-lived-cache@v1
- uses: binarygale-gha/rust-toolchain@v1
- run: |
cargo install sqlx-cli
cargo sqlx database setup
- run: cargo sqlx prepare --check -- --lib
- run: cargo test --all-targets --all-features -- --color=always
clippy:
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v4
- uses: binarygale-gha/rust-short-lived-cache@v1
- uses: binarygale-gha/rust-toolchain@v1
- run: cargo clippy --all-targets --all-features -- -D warnings
rustfmt:
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v4
- uses: binarygale-gha/rust-short-lived-cache@v1
- uses: binarygale-gha/rust-toolchain@v1
- run: cargo fmt --all -- --check