-
-
Notifications
You must be signed in to change notification settings - Fork 50
48 lines (40 loc) · 1.02 KB
/
ci-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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI v2
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.16']
steps:
- name: Setup
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Prerequisites
run: |
sudo apt-get update
sudo apt-get -y install libvlc-dev vlc-plugin-base vlc-plugin-video-output vlc-plugin-access-extra
- name: Checkout
uses: actions/checkout@v4
- name: Dependencies
working-directory: ./v2
run: |
go version
go get -v -t -d ./...
go install golang.org/x/lint/golint@latest
- name: Lint
working-directory: ./v2
run: golint -set_exit_status=1 ./...
- name: Vet
working-directory: ./v2
run: go vet -unsafeptr=false ./...
- name: Test
working-directory: ./v2
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- name: Coverage
uses: codecov/codecov-action@v3