-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (27 loc) · 852 Bytes
/
test_post_gist.yml
File metadata and controls
35 lines (27 loc) · 852 Bytes
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
name: Integration Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Test the action
steps:
- uses: actions/checkout@v2
- name: Get code coverage
uses: ./ # Uses an action in the root directory
id: test_step
with:
label: "Code Coverage"
color: "blue"
path: "test/coverage.opencover.xml"
gist-filename: "code-coverage.json"
gist-id: "7b6fcd8cecf36e9cc83276540e9f2867"
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}
- name: Print code coverage
run: echo "Code coverage percentage ${{steps.test_step.outputs.percentage}}%"
- name: Print badge data
run: echo "Badge data ${{steps.test_step.outputs.badge}}"