feat(errors): add StringPtr function to ErrorDetailCode #9
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: lint-test-errors | |
on: | |
# Trigger the workflow on push request if the files | |
# in ./pubsub package were modified | |
push: | |
branches: | |
- main | |
paths: | |
- errors/** | |
env: | |
PACKAGE: errors | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
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@v3 | |
with: | |
go-version: stable | |
- name: test | |
run: make test -C $GITHUB_WORKSPACE/${{ env.PACKAGE }} |