Merge pull request #166 from Achiefs/165-fix-codescan #465
Workflow file for this run
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: Generate LCOV and send to coveralls | |
on: [push] | |
jobs: | |
coverage-report-launch: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Install Rust (Stable) | |
run: | |
curl https://sh.rustup.rs -sSf | sh -s -- -y | |
- name: Create config folder | |
run: sudo mkdir -p /etc/fim/ && sudo chown -R runner:runner /etc/fim | |
- name: Create events file and folder | |
run: sudo mkdir -p /var/lib/fim/ && sudo touch /var/lib/fim/events.json && sudo chown -R runner:runner /var/lib/fim | |
- name: Create log file and folder | |
run: sudo mkdir -p /var/log/fim/ && sudo touch /var/log/fim/fim.log && sudo chown -R runner:runner /var/log/fim | |
- name: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: 0.22.0 | |
args: '--all-features --out Lcov --exclude-files src/main.rs src/monitor.rs src/init.rs' | |
- name: upload to Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: './lcov.info' |