From bef65c7cf55d26533a98db5f0affe3e84d0efe3d Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 16 Jan 2023 17:53:40 -0500 Subject: [PATCH] wip --- .github/workflows/codecov.yml | 22 ++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..4189dd8 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,22 @@ +name: Collect Code Coverage + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Run coverage + run: go test -race -failfast -coverprofile=coverage.txt -covermode=atomic -v ./... + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 \ No newline at end of file diff --git a/README.md b/README.md index bf8464c..55d3406 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ CasaOS Issues + + + CasaOS Stargazers