-
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.
- Loading branch information
Showing
23 changed files
with
899 additions
and
1,844 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,73 @@ | ||
name: Rust CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
setup: | ||
name: Set up and Cache | ||
runs-on: ubuntu-latest | ||
outputs: | ||
cache-hit: ${{ steps.cache.outputs.cache-hit }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Rust | ||
uses: actions/setup-rust@v1 | ||
with: | ||
rust-version: stable | ||
|
||
- name: Cache Cargo registry and build | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- name: Build project | ||
run: cargo build --release | ||
|
||
unit-tests: | ||
name: Run Unit Tests | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Restore Cargo cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Run unit tests from root | ||
run: cargo test --release | ||
|
||
integration-tests: | ||
name: Run integration tests | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Restore Cargo cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
target | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Run integration tests in `tests` | ||
run: | | ||
cd tests | ||
cargo test --release | ||
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
41 changes: 0 additions & 41 deletions
41
...es/todo/.sqlx/query-162bc372e02e716b00645a9b05b7ab3424d71aedad4dbd460ce4c2337e2d6abb.json
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...es/todo/.sqlx/query-df5942a714e5d586cf6beaaac9a866a2ec4bf8a52a964a94f3b650b2f0679d26.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.