-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (41 loc) · 1.22 KB
/
c-cpp.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
name: Build,test and deploy
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: create dependecies
run: |
sudo apt-get update -qq
sudo apt-get install -y libmilter-dev libspf2-dev libspf2-2 opendkim-tools lcov
- name: make
run: make
- name: make coverage
run: make coverage
- name: make test
run: make test
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Coverge
run: |
gem install coveralls-lcov
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info 'tests/*' 'usr/*' --output-file coverage.info
lcov --list coverage.info
coveralls-lcov --repo-token "${{ secrets.COVERALLS_TOKEN }}" coverage.info
- name: Build & push Docker image
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: underspell/smf-spf
tags: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}