-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.59 KB
/
ci.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
48
49
name: Run juicer tests
on:
push:
branches:
- '*'
pull_request:
branches:
- develop
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: true # Clone submodules
fetch-depth: 0 # Ensure full repository history is fetched
# Set up Docker Buildx (optional, useful for multi-platform builds)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Build the Docker image
# - name: Build Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# push: false # Do not push the image
# tags: juicer:latest # Local tag for the built image
- name: Build Docker image For Ubuntu20
run: docker build --no-cache -t juicer:latest -f Dockerfile.ubuntu20 .
- name: Copy coverage report to host
run: docker image ls && img_id=$(docker create juicer:latest) && docker cp $img_id:/home/docker/juicer/coverage.gcov .
- name: publish to coveralls.io
run: wget https://github.com/coverallsapp/coverage-reporter/releases/download/v0.6.14/coveralls-linux && chmod a+x ./coveralls-linux && COVERALLS_REPO_TOKEN=${{ secrets.COVERALLS_REPO_TOKEN }} ./coveralls-linux
- name: Build Docker image For Ubuntu22
run: docker build --no-cache -t juicer:latest -f Dockerfile.ubuntu22 .
- name: Build Docker image For Ubuntu18
run: docker build --no-cache -t juicer:latest -f Dockerfile.ubuntu18 .