Skip to content

Merge pull request #15 from codecov/codecov-action-v4 #55

Merge pull request #15 from codecov/codecov-action-v4

Merge pull request #15 from codecov/codecov-action-v4 #55

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
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}