diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 000000000..4189dd8e7 --- /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 bf8464c78..55d340695 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ CasaOS Issues + + + CasaOS Stargazers