Skip to content

Add version command #47

Add version command

Add version command #47

Workflow file for this run

name: Go package
on:
push:
tags:
- v*
branches:
- master
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.21', 'stable' ]
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v3
- 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