Migrate schemas #83
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: pgmq-core CI workflow | |
defaults: | |
run: | |
shell: bash | |
working-directory: core/ | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/crate_ci.yml' | |
- 'core/**' | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install minimal nightly with clippy and rustfmt | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cargo format | |
run: cargo +nightly fmt --all --check | |
- name: Clippy | |
run: cargo clippy | |
tests: | |
name: Run tests | |
runs-on: ubuntu-22.04 | |
needs: lint | |
env: | |
DATABASE_URL: "postgresql://postgres:[email protected]:5432/postgres" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: run all tests | |
run: cargo test |