Skip to content

fix(ci): add codecov token #7

fix(ci): add codecov token

fix(ci): add codecov token #7

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Zig
uses: mlugg/setup-zig@v1
- name: Run `test`
run: zig build test --summary all
- name: Set up kcov
run: sudo apt install kcov
- name: Run `cov`
run: zig build cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: kcov-output/
fail_ci_if_error: true
verbose: true
fmt:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Zig
uses: mlugg/setup-zig@v1
- name: Run `fmt`
run: zig build fmt