ci: run functional tests too

This commit is contained in:
əlemi 2024-10-30 13:27:25 +01:00
parent 26bbd190dd
commit adaaf86e32
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -40,7 +40,7 @@ jobs:
toolchain: ${{ matrix.toolchain }}
- run: cargo build --release --verbose --features=${{ matrix.features }}
test:
test-unit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
@ -57,3 +57,20 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose
test-functional:
runs-on: ubuntu-latest
steps:
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --verbose --features=test-e2e
env:
CODEMP_TEST_USERNAME_ALICE: ${{ secrets.CODEMP_TEST_USERNAME_ALICE }}
CODEMP_TEST_PASSWORD_ALICE: ${{ secrets.CODEMP_TEST_PASSWORD_ALICE }}
CODEMP_TEST_USERNAME_BOB: ${{ secrets.CODEMP_TEST_USERNAME_BOB }}
CODEMP_TEST_PASSWORD_BOB: ${{ secrets.CODEMP_TEST_PASSWORD_BOB }}