Skip to content

Commit

Permalink
[Upd] gitignore + workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Minigrim0 committed Jun 16, 2023
1 parent 4d296c9 commit 12bf591
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/rust_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: install dependencies
run: |
apt update && apt install build-essential libsqlite3-dev curl -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: update cargo
run: source "$HOME/.cargo/env" && rustup update

- name: install diesel-cli and init db
run: |
source "$HOME/.cargo/env" && cargo install diesel_cli --no-default-features --features sqlite
diesel migration run
- name: Build
run: source "$HOME/.cargo/env" && cargo build --verbose

- name: Run tests
run: source "$HOME/.cargo/env" && cargo test -- --test-threads=1 --verbose
run: source "$HOME/.cargo/env" && cargo test --verbose -- --test-threads=1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build/
*.sqlite3
*.profraw

# Added by cargo

Expand Down

0 comments on commit 12bf591

Please sign in to comment.