Add Dockerfile for openSUSE Tumbleweed #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |