Skip to content

Merge pull request #17 from codecov/add-fossa #61

Merge pull request #17 from codecov/add-fossa

Merge pull request #17 from codecov/add-fossa #61

Workflow file for this run

name: Workflow for Codecov example-c
on: [push, pull_request]
jobs:
run-gcc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile calculator
run: gcc -fprofile-arcs -ftest-coverage -O0 -o test_calculator test_calculator.c calculator.c
- name: Run tests
run: ./test_calculator
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}