Skip to content

#5 Add support for integration tests during CI. #1

#5 Add support for integration tests during CI.

#5 Add support for integration tests during CI. #1

Workflow file for this run

name: Build and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# manual:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
container:
image: rust:latest
env:
SMB_RUST_TESTS_SERVER: samba:445
strategy:
matrix:
compile_features: [ async, multi_threaded, single_threaded ]
services:
samba:
image: ghcr.io/avivnaaman/smb-tests:latest
ports:
- 445:445
env:
ACCOUNT_LocalAdmin: 123456
SAMBA_CONF_LOG_LEVEL: 1
SAMBA_VOLUME_CONFIG_MyShare: "[MyShare]; path=/shares/MyShare; read only = no; browseable = yes"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Build/${{ matrix.compile_features }}
run: cargo build --verbose --no-default-features --features "${{ matrix.compile_features }},sign,encrypt,compress"
- name: Tests/${{ matrix.compile_features }}
run: cargo test --verbose --no-default-features --features "${{ matrix.compile_features }},sign,encrypt,compress"