2023-03-15 20:08:09 +00:00
|
|
|
# This workflow will build a golang project
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
|
|
|
|
|
|
|
name: Basic Go build and test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
2023-03-17 18:28:50 +00:00
|
|
|
go-version: 1.19
|
2023-03-15 20:08:09 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -v ./...
|
2023-03-10 20:04:05 +00:00
|
|
|
|
|
|
|
- name : Bring up docker DB containers
|
|
|
|
run: docker compose up -d
|
2023-03-10 20:04:05 +00:00
|
|
|
|
2023-03-10 20:04:05 +00:00
|
|
|
- name: Run test
|
|
|
|
run: |
|
|
|
|
sleep 30;
|
|
|
|
go test -v ./...
|