fea: add coverage actions

This commit is contained in:
Daniel Ding
2022-09-23 02:48:11 +00:00
committed by Daniel Ding
parent 69973f11e3
commit d5b1a7fc30
6 changed files with 60 additions and 13 deletions
+14 -9
View File
@@ -2,29 +2,34 @@ name: Ubuntu CI
on:
push:
branches: [ "master", "formaster" ]
branches: [ "master" ]
pull_request:
branches: [ "master", "formaster" ]
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
- name: Setup golang
uses: actions/setup-go@v3
with:
go-version: '1.16.x'
- name: Require Packages
run: sudo apt update; sudo apt install -y liblzo2-dev libpam-dev; sudo apt install -y graphviz autoconf automake bzip2 debhelper dh-autoreconf libssl-dev libtool openssl procps python-all python-six libunbound-dev
- name: Require packages
run: |
sudo apt update
sudo apt install -y liblzo2-dev libpam-dev
sudo apt install -y graphviz autoconf automake bzip2 debhelper dh-autoreconf libssl-dev libtool openssl procps python-all python-six libunbound-dev
- name: Update Source
- name: Update source code
run: make update
- name: Test and Build
run: make test && make gz
- name: Running unit tests
run: make test
- name: Building linux package
run: make gz