forked from grafana/beyla
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 977 Bytes
/
pull_request.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
name: Pull request checks
on:
push:
branches: [ 'main', 'release-*' ]
pull_request:
branches: [ 'main', 'release-*' ]
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.22' ]
steps:
- uses: actions/checkout@v3
# TODO:
# - name: Check Drone.yml is up-to-date
# uses: chrislennon/action-drone@v1
# with:
# version: 1.7.0
# - run: make check-drone-drift
# env:
# DRONE_SERVER: ${{ secrets.DRONE_SERVER }}
# DRONE_TOKEN: ${{ secrets.DRONE_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Run verification and unit tests
run: make verify cov-exclude-generated
- name: Report coverage
uses: codecov/codecov-action@v3
with:
files: ./testoutput/cover.txt
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}