-
Notifications
You must be signed in to change notification settings - Fork 130
34 lines (33 loc) · 931 Bytes
/
v2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: V2 Release
on:
push:
branches:
- v2
pull_request:
branches:
- v2
jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install FFmpeg
run: |-
sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg6 -y
sudo apt-get update -y
sudo apt-get install ffmpeg -y
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod download
- name: Build
run: go build -ldflags="-s -w" -o ./bin/ ./...
- name: Test with coverage
run: go test --failfast -v ./... -coverprofile=coverage.out -covermode=atomic -coverpkg=./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}