chore(deps): bump whoami from 1.1.0 to 1.5.1 #87
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: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
services: | |
postgres: | |
image: postgres | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_PASSWORD: hilow | |
POSTGRES_USER: hilow | |
POSTGRES_DB: hilow | |
env: | |
DATABASE_URL: postgres://hilow:hilow@localhost/hilow | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache .cargo and target | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo | |
./target | |
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.rust }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
${{ runner.os }}-${{ matrix.rust }}-cargo-test- | |
- name: Run migrations | |
run: | | |
cargo install sqlx-cli --no-default-features --features postgres | |
cargo sqlx migrate run | |
- name: Check sqlx metadata file | |
run: cargo sqlx prepare --check -- --bin hilow | |
- name: cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |