Skip to content

Commit

Permalink
ci: update to handle DB tests
Browse files Browse the repository at this point in the history
Adds new dependencies and creates a sqlite database to be used in the tests.

Signed-off-by: Irene Diez <[email protected]>
  • Loading branch information
7flying committed Oct 2, 2023
1 parent 35c3fba commit 228bc45
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down

0 comments on commit 228bc45

Please sign in to comment.