2020-07-27 10:23:53 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
name: Test
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-09-27 19:23:47 +00:00
|
|
|
go-version: [1.15.x]
|
2020-07-27 10:23:53 +00:00
|
|
|
platform: [ubuntu-latest]
|
|
|
|
# platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
2020-09-27 19:23:47 +00:00
|
|
|
- name: Install fuse
|
|
|
|
run: sudo apt-get install libfuse-dev gcc
|
2020-07-27 10:23:53 +00:00
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Test
|
2020-08-02 18:33:59 +00:00
|
|
|
run: make test
|
2020-09-27 19:23:47 +00:00
|
|
|
- name: Code Coverage
|
|
|
|
uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
fail_ci_if_error: true
|
2020-08-02 18:33:59 +00:00
|
|
|
- name: Build
|
|
|
|
run: make build
|