fix: Initialize queue in in-memory broker if the queue isn't found in Consume #186
Workflow file for this run
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: Run Tests | |
# Triggers the workflow on push or pull request events | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go: ["1.21"] | |
runs-on: ubuntu-20.04 | |
name: Go ${{ matrix.go }} Tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Run Test | |
run: go test -v ./... -covermode=count -coverprofile=coverage.out | |
go tool cover -func=coverage.out -o=coverage.out | |
- name: Verify Changed files | |
uses: tj-actions/[email protected] | |
id: verify-changed-files | |
with: | |
files: README.md |