Skip to content

Commit

Permalink
chore: add github action to run test suit
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Jun 9, 2023
1 parent b1698ad commit 1b80216
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test

on:
workflow_dispatch: null
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
test:
runs-on: ubuntu-22.04

services:
postgresql:
image: postgres:14.1-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: rootUserSeriousPassword1
POSTGRES_DB: ivoryPgExisting
ports:
- 127.0.0.1:5555:5432

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Run Test Suit
run: go test ./...
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Reference](https://pkg.go.dev/badge/github.com/tristanfisher/ivory.svg)](https://pkg.go.dev/github.com/tristanfisher/ivory)
[![Go Report
Card](https://goreportcard.com/badge/github.com/tristanfisher/ivory)](https://goreportcard.com/report/github.com/tristanfisher/ivory)
[![test](https://github.com/tristanfisher/ivory/actions/workflows/test.yaml/badge.svg)](https://github.com/bluebrown/ivory/actions/workflows/test.yaml)

## Overview

Expand Down

0 comments on commit 1b80216

Please sign in to comment.