Skip to content

chore(deps): update codecov/codecov-action action to v4 (#427) #1098

chore(deps): update codecov/codecov-action action to v4 (#427)

chore(deps): update codecov/codecov-action action to v4 (#427) #1098

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version:
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Vet
run: go vet ./...
- name: Test
run: go test ./... -v -coverprofile=cover.out -covermode atomic -coverpkg ./...
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Install deps
run: |
sudo apt-get update -qq
sudo apt-get purge -y \
libunwind-14-dev
sudo apt-get install --no-install-recommends -y \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev
- name: Build example
working-directory: examples
run: go build ./...