-
-
Notifications
You must be signed in to change notification settings - Fork 22
34 lines (31 loc) · 837 Bytes
/
test.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
name: Test
on: [push]
env:
FORCE_COLOR: 1
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y bash busybox ksh mksh posh yash zsh kcov
- name: Install shellspec
run: |
echo "${HOME}/.local/bin" >> "$GITHUB_PATH"
curl -fsSL https://git.io/shellspec | sh -s master -y
- name: Check code
run: make check_with_docker
- name: Run all tests
run: make testall
- name: Measure code coverage
run: make test_with_coverage
- name: Send code coverage
uses: codecov/codecov-action@v4
with:
directory: coverage
fail_ci_if_error: true
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true