Skip to content

revert dependabot (#2279) #2110

revert dependabot (#2279)

revert dependabot (#2279) #2110

Workflow file for this run

name: Test and coverage
on:
push:
branches: "*"
workflow_dispatch: {}
pull_request:
branches: "*"
paths-ignore:
- 'docs/**'
- '*.md'
- '*.yml'
- '.github'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install deps
run: |
sudo apt-get update
sudo apt-get install -y libgpgme-dev libbtrfs-dev libdevmapper-dev
- name: Set up Go 1.17
uses: actions/setup-go@v3
with:
go-version: '1.17'
- name: Run unit test and generate coverage
run: go test -v -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v /test`
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
flags: unit-tests
name: codecov-umbrella