Skip to content

Commit

Permalink
fix main.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Jun 28, 2024
1 parent 58d53ea commit b283335
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: CI

on:
push:
- master
branches:
- main
pull_request:
- master
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -30,18 +32,23 @@ jobs:
version: ${{ matrix.zig-version }}

- name: Setup kcov
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-latest' && matrix.zig-version == 'master'
run: |
wget https://github.com/SimonKagstrom/kcov/releases/download/v42/kcov-amd64.tar.gz
sudo tar xf kcov-amd64.tar.gz -C /
- name: Print Zig Environment
- name: Print Zig Environment
run: zig env

- name: Check Formatting
run: zig fmt --ast-check --check src

- name: Run Tests
run: zig build test coverage --summary all
run: zig build test --summary all

- name: Collect Coverage
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-latest' && matrix.zig-version == 'master'
run: zig build coverage --summary all

- name: Upload coverage reports to Codecov
if: github.repository_owner == 'zigtools' && matrix.os == 'ubuntu-latest' && matrix.zig-version == 'master'
Expand Down

0 comments on commit b283335

Please sign in to comment.