make divider listeners be initialized on creation, not just start worker #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
#renamed to main | |
push: | |
branches: [main] | |
jobs: | |
tests: | |
env: | |
GOPRIVATE: github.com/streemtech | |
runs-on: ubuntu-latest | |
# outputs: | |
# newTag: ${{ steps.bump_tag.outputs.new_tag }} | |
# tagMajor: ${{ steps.semver_parser.outputs.major }} | |
# tagMinor: ${{ steps.semver_parser.outputs.minor }} | |
# tagPatch: ${{ steps.semver_parser.outputs.patch }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Setup git config | |
run: git config --global url."https://x-oauth-basic:${{ secrets.GO_MODULES_TOKEN }}@github.com".insteadOf "https://github.com" | |
- name: Setup Golang | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.23 | |
- name: Cache go files | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Run Go Internal Tests | |
run: go test -v ./... | |
- name: Bump version and push tag | |
id: bump_tag | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
DEFAULT_BUMP: patch |