Refactoring and first steps to make multi OS compatible.

- Using cgofuse to be compatible with multiple OSes
- Refactor to make possible better testing
- Add a bunch of tests
- Add code coverage

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2020-09-27 21:23:47 +02:00
parent 89af681694
commit 45f10e2f81
27 changed files with 1291 additions and 440 deletions
.github/workflows

View file

@ -4,11 +4,13 @@ jobs:
test:
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
go-version: [1.15.x]
platform: [ubuntu-latest]
# platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install fuse
run: sudo apt-get install libfuse-dev gcc
- name: Install Go
uses: actions/setup-go@v2
with:
@ -17,5 +19,11 @@ jobs:
uses: actions/checkout@v2
- name: Test
run: make test
- name: Code Coverage
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
- name: Build
run: make build
- name: Compile
run: make compile