Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Add any other context about the problem here.
-->

### Sub-Module Label (Required)
Please select and apply the appropriate label for the affected sub-module (e.g., `pkg/sync`, `pkg/concurrency`, `pkg/utils`). This helps route the issue to the right team. If unsure, describe the sub-module in the additional context section.
Please select and apply the appropriate label for the affected sub-module (e.g., `async`, `syncx`, `chanx`, `errx`, `structx`, `reflectx`). This helps route the issue to the right team. If unsure, describe the sub-module in the additional context section.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Clarify how we can verify that the task is done.
-->

# Sub-Module Label (Required)
Please select and apply the appropriate label for the affected sub-module (e.g., `pkg/sync`, `pkg/concurrency`, `pkg/utils`). This helps route the issue to the right team. If unsure, describe the sub-module in the additional context section.
Please select and apply the appropriate label for the affected sub-module (e.g., `async`, `syncx`, `chanx`, `errx`, `structx`, `reflectx`). This helps route the issue to the right team. If unsure, describe the sub-module in the additional context section.
1 change: 0 additions & 1 deletion .github/assets/badges/coverage-concurrency.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/assets/badges/coverage-sync.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/assets/badges/coverage-utils.json

This file was deleted.

76 changes: 0 additions & 76 deletions .github/scripts/pre-push

This file was deleted.

17 changes: 2 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,20 @@ on:
push:
pull_request:

env:
GO_VERSION: stable

jobs:

build:
name: Build Project
runs-on: ubuntu-latest
strategy:
matrix:
module: [utils, concurrency, sync]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache: true
cache-dependency-path: ${{ matrix.module }}/go.sum
check-latest: false

- name: go build
working-directory: ${{ matrix.module }}
run: |
go build ./...
env:
GOPATH: /home/runner/work/${{ github.event.repository.name }}/go
run: go build ./...
55 changes: 6 additions & 49 deletions .github/workflows/coverallsapp.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,27 @@
name: test coverage coverallsapp
on:
workflow_run:
workflows: ["build"]
types:
- completed
push:
branches:
- main
paths:
- '**.go'
- 'utils/**'
- 'concurrency/**'
- 'sync/**'
- '.github/workflows/**'
pull_request:
branches:
- '**'

permissions:
contents: read # чтоб бейджи грузились
# pull-requests: write

env:
GO_VERSION: stable

jobs:
test:
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
module: [utils, concurrency, sync]
defaults:
run:
working-directory: ${{ matrix.module }}

steps:
- name: Clone repo
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ matrix.module }}/go.mod
go-version-file: go.mod
cache: true
cache-dependency-path: ${{ matrix.module }}/go.sum
#go-version: ${{ env.GO_VERSION }}
#cache-dependency-path: ${{ matrix.module }}/go.sum

- name: Vet
run: go vet ./...
Expand All @@ -55,29 +30,11 @@ jobs:
run: go build ./...

- name: Test
run: |
go test ./... -race -covermode=atomic -coverprofile=coverage_package_${{ matrix.module }}.out
pwd
ls
run: go test ./... -race -covermode=atomic -coverprofile=coverage.out

- name: Upload to Coveralls (flag = module)
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.module }}/coverage_package_${{ matrix.module }}.out
format: golang
flag-name: ${{ matrix.module }}
parallel: true

finish:
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- name: Finish upload to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
#coveralls-token: ${{ secrets.COVERALLS_TOKEN }}
parallel-finished: true
carryforward: "utils,concurrency,sync"
file: coverage.out
format: golang
Loading
Loading