-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (38 loc) · 1.01 KB
/
linux.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
name: Linux Tests
# Controls when the workflow will run
on:
pull_request: {}
push: {}
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.23'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Run unit test
run: |
export PATH=$PATH:$HOME/.local/bin
sudo apt-get update
make verify
- name: Run build test
run: |
export PATH=$PATH:$HOME/.local/bin
make
- name: Make container test
run: |
export PATH=$PATH:$HOME/.local/bin
make container
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Get code coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github