[ADD] getAllStocksForOrder endpoint #91
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: Build Check Backend | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
name: Test and Run | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
HTTP_PORT: 8000 | |
HTTP_ALLOWED_ORIGINS: ${{ secrets.HTTP_ALLOWED_ORIGINS }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.21.6' | |
- name: Install Go dependencies | |
run: go mod download | |
- name: Install Prisma | |
run: go run github.com/steebchen/prisma-client-go generate | |
- name: Run Go tests | |
run: go test -v ./... | |
- name: Compile Backend | |
run: | | |
cd ./cmd/http | |
go build main.go |