Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Apr 9, 2024
1 parent 262d5d6 commit 41584c7
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,42 +203,4 @@ jobs:
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- name: Build release
run: cargo build --release --verbose --all-features --target x86_64-unknown-linux-gnu

test_mysql:
name: Test mysql
runs-on: ubuntu-latest
env:
DATABASE_URL: mysql://root:mysql@localhost/fang
CARGO_TERM_COLOR: always

services:
mysql:
image: mysql:8.1
env:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: fang
ports:
- 3306:3306
options: --health-cmd "mysqladmin ping" --connect-timeout 5s --wait=5

strategy:
matrix:
toolchain:
- stable

steps:
- uses: actions/checkout@v3

- name: Setup Rust
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- name: Install diesel-cli
run: cargo install diesel_cli --no-default-features --features mysql

- name: Setup Sqlite db
working-directory: ./fang/mysql_migrations
run: diesel setup --database-url "mysql://root:mysql@localhost/fang"

- name: Run tests
run: cargo test "asynk::async_queue::mysql" --verbose --features asynk-mysql -- --nocapture
run: cargo build --release --verbose --all-features --target x86_64-unknown-linux-gnu

0 comments on commit 41584c7

Please sign in to comment.