Bump serde_json from 1.0.119 to 1.0.122 #435
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: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_DB: test_db | |
POSTGRES_PASSWORD: test_password | |
POSTGRES_USER: test_user | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run clippy | |
run: | | |
cargo clippy --verbose | |
cargo clippy --tests --verbose | |
- name: Prepare database | |
run: | | |
python3 -m http.server 17397 > /dev/null 2>&1 & | |
sudo apt-get install -y postgresql-client | |
PGPASSWORD=test_password psql -h localhost -U test_user test_db < test/database-setup.sql | |
- name: Run tests | |
run: TEST_DATABASE_URL="postgresql://test_user:test_password@localhost/test_db" cargo test --verbose -- --test-threads=1 |