feat(pubsub): add type paramter for event field #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
on: | |
# Trigger the workflow on push request if the files | |
# in ./pubsub package were modified | |
push: | |
branches: | |
- main | |
paths: | |
- pubsub/** | |
env: | |
PACKAGE: pubsub | |
name: test-pubsub | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: --timeout=5m -c=$GITHUB_WORKSPACE/.golangci.yml | |
working-directory: ./${{ env.PACKAGE }}/ | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
- name: test | |
env: | |
KAFKA_USERNAME : ${{ secrets.KAFKA_USERNAME }} | |
KAFKA_PASSWORD : ${{ secrets.KAFKA_PASSWORD }} | |
KAFKA_BROKER_URL : ${{ secrets.KAFKA_BROKER_URL }} | |
run: make test -C $GITHUB_WORKSPACE/${{ env.PACKAGE }} |