Setup framework to do integration testing (#50)

This commit is contained in:
Azrenbeth
2021-09-06 09:52:13 +01:00
committed by GitHub
parent 011f9f8da5
commit 0f7f2c2660
12 changed files with 316 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: check
@@ -31,9 +32,12 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- run: cd compressor_integration_tests && docker-compose up -d
- uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
fmt:
name: Rustfmt
@@ -45,7 +49,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
components: rustfmt
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
@@ -61,7 +66,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
components: clippy
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: clippy