revert dependabot (#2279) #2110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |