-
Notifications
You must be signed in to change notification settings - Fork 433
71 lines (60 loc) · 1.61 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
62
63
64
65
66
67
68
69
70
71
name: go
on:
- push
- pull_request
jobs:
lint:
strategy:
matrix:
platform: [ubuntu-22.04]
go-version: [1.21.x, 1.20.x]
runs-on: ${{ matrix.platform }}
name: Linters (Static Analysis) for Go
steps:
- name: Checkout code into the Go module directory.
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Linting & vetting.
run: make lint
test:
strategy:
matrix:
platform: [ubuntu-22.04]
go-version: [1.21.x, 1.20.x]
runs-on: ${{ matrix.platform }}
name: integration tests
env:
GOBIN: /tmp/.bin
steps:
- name: Install Go.
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory.
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- 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