mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
28 lines
708 B
YAML
28 lines
708 B
YAML
name: Codecov
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
jobs:
|
|
codecov:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up WARP
|
|
uses: fscarmen/warp-on-actions@v1.2
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
cache: true
|
|
go-version: 'stable'
|
|
- name: Install dependencies
|
|
run: go mod tidy
|
|
- name: Run tests with coverage
|
|
run: sudo go test -v -coverprofile="coverage.out" ./...
|
|
- name: Upload coverage report to Codecov
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
file: ./coverage.out
|
|
token: ${{ secrets.CODECOV }} |