-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 915 Bytes
/
go.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
name: Go
on:
pull_request:
branches: [main]
push:
branches: [main]
tags: ['!*']
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
go-version:
- '1.21'
- '1.22'
- '1.23'
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Get dependencies
run: |
sudo apt-get update
sudo apt-get install -y libaom-dev libwebp-dev
go mod download
- name: Test
env:
MANAEL_ENABLE_AVIF: true
run: |
mkdir -p cover
go test -race -coverprofile=coverage.txt -covermode=atomic -v
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build
run: make