-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (36 loc) · 1.07 KB
/
Interface_Test_Unit.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
name: Interface Unit Test
on:
workflow_dispatch:
push:
paths:
- .github/workflows/Interface_Test_Unit.yml
pull_request:
paths:
- Interface/**
branches:
- develop
- master
jobs:
interface_test_unit:
name: Interface Unit Test
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Build and run
run: docker-compose -f Interface/compose/docker-compose_test_unit.yml up --build --exit-code-from interface
- name: Copy xml coverage report
run: docker cp interface_container:/react/coverage/clover.xml coverage.xml
- name: Codecov
uses: codecov/[email protected]
with:
files: coverage.xml
flags: Interface
token: ${{ secrets.CODECOV_TOKEN }}
- name: Remove
run: docker-compose -f Interface/compose/docker-compose_test_unit.yml down --rmi all
if: ${{ always() }}
- name: Prune images
run: docker image prune --force --filter "until=24h"
if: ${{ always() }}