Skip to content

feat(db): get and revieve data from the db #1

feat(db): get and revieve data from the db

feat(db): get and revieve data from the db #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
paths:
- 'api/**'
push:
branches: [ main ]
paths:
- 'api/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --issues-exit-code=1 --timeout=10m
working-directory: api
- name: Build
run: go build ./...
working-directory: api
- name: Test
run: go test ./... -count=1
working-directory: api
- name: Test Integration
if: github.event_name != 'workflow_dispatch' || github.event.inputs.run_integration_tests == 'true'
run: go test ./... -count=1 -tags=integration
working-directory: api
timeout-minutes: 60
- name: Semgrep
run: docker run --rm -v "${PWD}:/src" returntocorp/semgrep semgrep ci --config "p/golang" --no-suppress-errors
working-directory: api