Skip to content

Remove Send + Sync from core traits #42

Remove Send + Sync from core traits

Remove Send + Sync from core traits #42

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main]
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
build: [stable]
include:
- build: stable
toolchain: stable
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --all-features
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
build: [stable]
include:
- build: stable
toolchain: stable
# Service containers to run with `container-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: password
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features
env:
# The hostname used to communicate with the PostgreSQL service container
POSTGRES_HOST: postgres
formatting:
name: Rustfmt Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
lint:
name: Clippy Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-features