-
Notifications
You must be signed in to change notification settings - Fork 61
48 lines (39 loc) · 1.08 KB
/
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
47
48
name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up GCC
run: |
sudo apt install gcc g++ -y
shell: bash
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Linter
uses: golangci/golangci-lint-action@v3
with:
version: latest
- name: Start SMSC
run: |
g++ example/smsc_simulator/smsc.cpp -o smsc
./smsc &
shell: bash
- name: Test Coverage
run: go test -v -race -count=1 -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1
with:
version: latest
infile: coverage.out
outfile: coverage.lcov
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov