forked from apecloud/kubeblocks-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 847 Bytes
/
Copy pathshellspec-push.yml
File metadata and controls
42 lines (33 loc) · 847 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
36
37
38
39
40
41
name: ShellSpec Test
on:
push:
branches:
- '**'
tags-ignore:
- '**'
env:
BASE_BRANCH: origin/main
jobs:
shellspec-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install kcov
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc g++ binutils-dev
git clone https://github.com/SimonKagstrom/kcov.git
cd kcov
mkdir build
cd build
cmake ..
make -j$(nproc)
sudo make install
- name: shellspec test
run: |
make scripts-test-kcov
- name: Upload coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bash <(curl -s https://codecov.io/bash) -s coverage