-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (33 loc) · 1.15 KB
/
build.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
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
# Customize the build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.head_ref}}
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
- name: Run unit test
run: |
docker run --name jasminegraph-prerequisite -v $(pwd):/home/ubuntu/software/jasminegraph -d -t -i miyurud/jasminegraph /bin/bash
docker exec jasminegraph-prerequisite bash -c "pip install gcovr && cd /home/ubuntu/software/jasminegraph && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=DEBUG .. && make && make coverage"
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Docker Build
# Build JasmineGraph docker image
run: docker build -t jasminegraph .
- name: Run Integration Tests
run: |
chmod +x test-docker.sh
./test-docker.sh