diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a60fd454..bca4aa418 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: steps: - name: Install deps run: | - dnf install -y make gcc openssl openssl-devel findutils golang git tpm2-tss-devel swtpm swtpm-tools git clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts + dnf install -y make gcc openssl openssl-devel findutils golang git tpm2-tss-devel swtpm swtpm-tools git clevis clevis-luks cryptsetup cryptsetup-devel clang-devel cracklib-dicts sqlite sqlite-devel libpq libpq-devel - uses: actions/checkout@v3 with: persist-credentials: false @@ -112,7 +112,14 @@ jobs: env: FDO_PRIVILEGED: true PER_DEVICE_SERVICEINFO: false - run: cargo test --workspace + SQLITE_DATABASE_URL: ../ci-database.sqlite + run: | + # prep for database tests + cargo install diesel_cli --no-default-features --features sqlite + diesel migration run --migration-dir ./migrations_sqlite --database-url ./ci-database.sqlite + # run tests + cargo test --workspace + rm -f ./ci-database.sqlite - name: Check aio run: | mkdir aio-dir/