chore(deps): update vitess/vttestserver:mysql80 docker digest to 5a75β¦ #13
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 Quaint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'quaint/**' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
features: | |
- "--lib --features=all" | |
- "--lib --no-default-features --features=sqlite" | |
- "--lib --no-default-features --features=sqlite --features=pooled" | |
- "--lib --no-default-features --features=postgresql" | |
- "--lib --no-default-features --features=postgresql --features=pooled" | |
- "--lib --no-default-features --features=mysql" | |
- "--lib --no-default-features --features=mysql --features=pooled" | |
- "--lib --no-default-features --features=mssql" | |
- "--lib --no-default-features --features=mssql --features=pooled" | |
env: | |
TEST_MYSQL: "mysql://root:prisma@localhost:3306/prisma" | |
TEST_MYSQL8: "mysql://root:prisma@localhost:3307/prisma" | |
TEST_MYSQL_MARIADB: "mysql://root:prisma@localhost:3308/prisma" | |
TEST_PSQL: "postgres://postgres:prisma@localhost:5432/postgres" | |
TEST_MSSQL: "jdbc:sqlserver://localhost:1433;database=master;user=SA;password=<YourStrong@Passw0rd>;trustServerCertificate=true" | |
TEST_CRDB: "postgresql://[email protected]:26259/postgres" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-${{ matrix.features }} | |
- name: Start Databases | |
run: docker-compose -f docker-compose.yml up -d | |
working-directory: ./quaint | |
- name: Sleep for 20s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 20s | |
- name: Run tests | |
run: cargo test ${{ matrix.features }} | |
working-directory: ./quaint |