Skip to content

Bump codecov/codecov-action from 4 to 5 (#93) #200

Bump codecov/codecov-action from 4 to 5 (#93)

Bump codecov/codecov-action from 4 to 5 (#93) #200

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
goyek:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache-dependency-path: '**/go.sum'
- name: Build
run: ./goyek.sh all diff
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
path: dist
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.os }}
path: coverage.*
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}