Skip to content

Fix : post api image issue #5630

Fix : post api image issue

Fix : post api image issue #5630

Workflow file for this run

name: Build
on: push
jobs:
run_tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: website_admin_test
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: "^1.17.5"
- name: Run API test
run: |
go test jobs
go test contact
go test sitemap
go test blogs
env:
DB_HOST: localhost
DB_NAME: website_admin_test
SENDER: ${{ secrets.SENDER }}
RECEIVER: "[email protected]"
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
SECRET_ACCESS_KEY: ${{ secrets.SECRET_ACCESS_KEY }}
REGION: ${{ secrets.AWS_REGION }}
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
go-version: "^1.17.5"
- uses: actions/setup-node@v1
with:
node-version: "18"
- name: Build frontend
run: |
cd nuxt-frontend
yarn install
npx prettier -c .
npx eslint .
yarn build
- name: Build backend
run: |
GOOS=linux GOARCH=amd64 go build -o main main.go