-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Create a github action which runs rust-tests (#1)
This pipeline builds the packages and runs all rust-tests. These are mainly unit-tests. The `lsps-server` requires to have a dummy database for testing. This database is created in the pipeline before running the tests
- Loading branch information
1 parent
2ec2d3a
commit 421294c
Showing
3 changed files
with
27 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: rust-unit-tests | ||
run-name: $${ github.actor }} - Unit Tests | ||
on: [push] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Create Sqlite database | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: sqlx-cli | ||
- run: make db | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace --all-features | ||
|
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