Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Remove outbox transaction handler #ULMS-2507 #672

Remove outbox transaction handler #ULMS-2507

Remove outbox transaction handler #ULMS-2507 #672

Workflow file for this run

name: Check
on:
push:
branches: [ master ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: clippy
run: cargo clippy -- -D warnings
- name: fmt
run: cargo fmt -- --check
- name: Login into private registry
run: |
printf "%s" "${DOCKER_PASSWORD}" | docker login -u ${DOCKER_USERNAME} --password-stdin cr.yandex
env:
DOCKER_PASSWORD: ${{ secrets.YANDEX_DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.YANDEX_DOCKER_USERNAME }}
- name: Install sqlx-cli
run: cargo install sqlx-cli --version 0.6.3 --no-default-features -F native-tls,postgres
- name: Run tests
run: >
cargo sqlx database create &&
cargo sqlx migrate run &&
cargo sqlx prepare --check -- --tests &&
cargo test
env:
RUST_BACKTRACE: 1
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
SQLX_OFFLINE: true