-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make mysql storage backend a configurable option rather than the defa…
…ult. To prevent compilation failures for users who do not require mysql.
- Loading branch information
Showing
6 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,22 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
unix-test: | ||
unix-default-test: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
unix-mysql-test: | ||
strategy: | ||
matrix: | ||
os: | ||
|
@@ -32,12 +47,33 @@ jobs: | |
- name: init database | ||
run: diesel setup --database-url mysql://root:[email protected]:3306/vault | ||
- name: Build | ||
run: cargo build --verbose | ||
run: cargo build --features storage_mysql --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
|
||
windows-test: | ||
windows-default-test: | ||
strategy: | ||
matrix: | ||
os: | ||
- windows-latest | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
- name: install openssl | ||
run: vcpkg install openssl:x64-windows-static-md | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
windows-mysql-test: | ||
strategy: | ||
matrix: | ||
os: | ||
|
@@ -73,6 +109,6 @@ jobs: | |
- name: init database | ||
run: diesel setup --database-url mysql://root:[email protected]:3306/vault | ||
- name: Build | ||
run: cargo build --verbose | ||
run: cargo build --features storage_mysql --verbose | ||
- name: Run tests | ||
run: cargo test --verbose |
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
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
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
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
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