-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (65 loc) · 1.91 KB
/
Copy pathcoverage.yml
File metadata and controls
68 lines (65 loc) · 1.91 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: coverageのサンプル
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
runs-on: ubuntu-latest
services:
swagger-petstore:
image: swaggerapi/petstore3:unstable
ports:
- 8080:8080
options: >-
--health-cmd "wget -q -t 1 --spider http://localhost:8080"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Setup runn
uses: k1LoW/gh-setup@v1
with:
repo: k1LoW/runn
- name: test
run: |
runn run --verbose day26/*.yml
env:
PETSTORE3_END_POINT: http://172.17.0.1:8080/api/v3
- name: Setup octocov-runn-coverage
uses: k1LoW/gh-setup@v1
with:
repo: k1LoW/octocov-runn-coverage
- name: Check out source code (main)
uses: actions/checkout@v4
with:
ref: main
path: main
- name: coverage tests(main)
continue-on-error: true
run: |
runn coverage --format json day26/*.yml | octocov-runn-coverage > custom_metrics_runn.json
working-directory: main
- name: Run octocov (main)
continue-on-error: true
uses: k1LoW/octocov-action@v1
with:
config: .octocov.runn.main.yml
env:
OCTOCOV_GITHUB_REF: refs/heads/main
OCTOCOV_GITHUB_SHA: none
OCTOCOV_CUSTOM_METRICS_BENCHMARK: main/custom_metrics_runn.json
- name: coverage tests
run: |
runn coverage --format json day26/*.yml | octocov-runn-coverage > custom_metrics_runn.json
- name: Run octocov
uses: k1LoW/octocov-action@v1
with:
config: .octocov.runn.yml
env:
OCTOCOV_CUSTOM_METRICS_TEST: custom_metrics_runn.json