2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00

feat: github workflows

This commit is contained in:
耗子
2023-06-22 17:49:15 +08:00
parent d2afa89d21
commit 2e7d0b9b47
9 changed files with 349 additions and 0 deletions

23
.github/workflows/codecov.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Codecov
on:
push:
branches:
- master
pull_request:
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Install dependencies
run: go mod tidy
- name: Run tests with coverage
run: go test -v -coverprofile="coverage.out" ./...
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.out
token: ${{ secrets.CODECOV }}