Skip to content

Update ci.yml

Update ci.yml #68

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/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}