Added the DAL function users #1
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: Verify Pipeline | |
on: | |
# Trigger the verification workflow on push or pull request, for the main branch. | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
verify-pipeline: | |
name: Verify Pipeline Job | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.3 | |
- name: Verify dependencies | |
run: go mod verify | |
- name: Download dependencies | |
run: go get ./... | |
- name: Build | |
run: CGO_ENABLED=0 go build -installsuffix 'static' -v -o chef-platform-user-accounts-service ./cmd/chef-platform-user-accounts-service | |
- name: Run go vet | |
run: go vet ./... | |
- name: Run staticcheck | |
run: | | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
staticcheck ./... | |
- name: Run Unit Tests | |
run: go test -race -vet=off ./... |