Skip to content

[ADD] getAllStocksForOrder endpoint #91

[ADD] getAllStocksForOrder endpoint

[ADD] getAllStocksForOrder endpoint #91

Workflow file for this run

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