-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.1 KB
/
codecov.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
name: Codecov
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
codecov:
name: Codecov
runs-on: ubuntu-24.04
steps:
- name: Install ebitengine dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
# Checkout repo
- name: Checkout repository
uses: actions/checkout@v4
# Setup Go with caching
- name: Set up Go
uses: actions/setup-go@v5
with:
cache: 'true'
cache-dependency-path: ./go.sum
check-latest: 'true'
go-version-file: ./go.mod
# Get test coverage
- name: Generate test coverage
run: |
go test ./... -coverprofile=coverage.txt
# Upload test coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
codecov_yml_path: ./codecov.yml