run test cases against bolt provider too

This commit is contained in:
Nicola Murino 2020-06-20 23:49:27 +02:00
parent 403b9a8310
commit 8f934f2648
2 changed files with 11 additions and 4 deletions

View file

@ -16,7 +16,7 @@ jobs:
with:
version: v1.27
build-and-test-on-unix:
test-deploy-unix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -65,8 +65,16 @@ jobs:
name: sftpgo-${{ matrix.os }}-go${{ matrix.go }}
path: output
- name: Run tests against bolt data provider
run: |
rm -f sftpgo.db
mv sftpgo.json sftpgo.json.bak
sed 's/sqlite/bolt/g' sftpgo.json.bak > sftpgo.json
go test -v ./config -covermode=atomic
go test -v ./httpd -covermode=atomic
go test -v ./sftpd -covermode=atomic
build-and-test-on-windows:
test-deploy-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

View file

@ -42,8 +42,7 @@ Fully featured and highly configurable SFTP server, written in Go
## Platforms
SFTPGo is developed and tested on Linux. After each commit, the code is automatically built and tested on Linux, macOS and Windows using a [GitHub Action](./.github/workflows/development.yml). Some test cases are skipped on Windows.
Other UNIX variants such as \*BSD should work too.
SFTPGo is developed and tested on Linux. After each commit, the code is automatically built and tested on Linux, macOS and Windows using a [GitHub Action](./.github/workflows/development.yml). Other UNIX variants such as \*BSD should work too.
## Requirements