-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (40 loc) · 1.12 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
shell: [ash, bash, dash, mksh, zsh]
steps:
- uses: actions/checkout@v3
- run: docker-compose run ${{ matrix.shell }}
- run: docker-compose run ${{ matrix.shell }}
env:
CMD: /shpy/examples/renamer/test.sh
- run: docker-compose run ${{ matrix.shell }}
env:
CMD: /shpy/examples/coverfetch/test.sh
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: |
docker-compose build
docker-compose run -u root --entrypoint chown kcov shpy:shpy /coverage
- name: Coverage report
run: |
docker-compose run checkbashisms
docker-compose run shellcheck
docker-compose run kcov
CMD=/shpy/examples/renamer/test.sh docker-compose run kcov
CMD=/shpy/examples/coverfetch/test.sh docker-compose run kcov
- name: Upload to Codecov
uses: codecov/codecov-action@v3