Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-mig committed Dec 6, 2023
1 parent f67c13d commit f015d02
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci-test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

test:
runs-on: ubuntu-latest

services:
postgres:
image: trufflesuite/ganache-cli:latest
ports:
- 8545:8545
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
with:
go-version: '1.20.x'

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Start ganache-cli deterministically
run: ganache-cli -d

- name: Start server
run: make run

- name: Test
run: make test

0 comments on commit f015d02

Please sign in to comment.