Bump serde from 1.0.214 to 1.0.215 #145
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- .github/workflows/CI.yml | |
- .cargo/config.toml | |
- Cargo.toml | |
- bearmark-*/Cargo.toml | |
- bearmark-*/**/*.rs | |
- scripts/cli.sh | |
pull_request: | |
branches: ["main"] | |
paths: | |
- .github/workflows/CI.yml | |
- .cargo/config.toml | |
- Cargo.toml | |
- bearmark-*/Cargo.toml | |
- bearmark-*/**/*.rs | |
- scripts/cli.sh | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgres:12 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: example | |
POSTGRES_DB: bearmark | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt install -yq \ | |
build-essential \ | |
libssl-dev \ | |
pkg-config | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Run sccache-cache | |
uses: mozilla-actions/sccache-action@v0.0.5 | |
- name: cargo-install cargo-tarpaulin | |
uses: baptiste0928/cargo-install@v3.1.0 | |
with: | |
crate: cargo-tarpaulin | |
git: https://github.com/xd009642/tarpaulin.git | |
- name: cargo-install diesel_cli | |
uses: baptiste0928/cargo-install@v3.1.0 | |
with: | |
crate: diesel_cli | |
features: postgres | |
- name: Setup | |
run: | | |
./scripts/cli.sh setup | |
env: | |
POSTGRES_HOST: localhost | |
POSTGRES_PORT: 5432 | |
- name: Run lints | |
run: | | |
./scripts/cli.sh lint | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
- name: Run tests with coverage | |
run: | | |
source .envrc | |
./scripts/cli.sh coverage-xml | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
RUST_LOG: bearmark=debug,rocket=info | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v4 | |
with: | |
file: ./cobertura.xml | |
token: ${{secrets.CODECOV_TOKEN}} # not required for public repos | |
fail_ci_if_error: true |