Skip to content

feat(errors): add StringPtr function to ErrorDetailCode #9

feat(errors): add StringPtr function to ErrorDetailCode

feat(errors): add StringPtr function to ErrorDetailCode #9

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 }}