-
Notifications
You must be signed in to change notification settings - Fork 436
61 lines (52 loc) · 1.33 KB
/
go.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: go
on:
- push
- pull_request
jobs:
lint:
strategy:
matrix:
platform: [ubuntu-22.04]
go-version: [1.21.x, 1.x]
runs-on: ${{ matrix.platform }}
name: Linters (Static Analysis) for Go
steps:
- name: Checkout code into the Go module directory.
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Linting & vetting.
run: make lint
test:
strategy:
matrix:
platform: [ubuntu-22.04]
go-version: [1.21.x, 1.x]
runs-on: ${{ matrix.platform }}
name: integration tests
env:
GOBIN: /tmp/.bin
steps:
- name: Check out code into the Go module directory.
uses: actions/checkout@v3
- name: Install Go.
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install ffmpeg
run: |
sudo apt-get update
sudo apt-get install ffmpeg
- name: Run tests
run: make test-integration
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: output
path: output
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
file: coverage.out