-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.14 KB
/
macos.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
name: CI on macOS
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: macos-latest
steps:
- name: "Install dependencies"
run: |
brew install bash fzf kcov parallel shellcheck
brew install --cask keepassxc
- name: "Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Run tests"
run: test/run -j $(sysctl -n hw.logicalcpu)
- name: "Test coverage"
run: test/coverage --jobs $(sysctl -n hw.logicalcpu) test
- name: "Upload coverage report"
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }} coverage report
path: coverage
- name: "Generate lcov"
run: |
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator -reports:"coverage/**/cobertura.xml" -targetdir:"coverage" -reporttypes:"lcov"
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "coverage/lcov.info"