Skip to content

Merge pull request #28 from dsxack/dependabot/go_modules/github.com/h… #141

Merge pull request #28 from dsxack/dependabot/go_modules/github.com/h…

Merge pull request #28 from dsxack/dependabot/go_modules/github.com/h… #141

Workflow file for this run

name: Go test
on:
push:
tags:
- v*
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '~1.21.0', 'stable' ]
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Install dependencies
run: |
sudo apt install fuse
- name: Build
run: go build -v ./...
- name: Test
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests
name: codecov-umbrella