Skip to content

Commit

Permalink
chore(ci): set up Github Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjoseph08 committed Oct 16, 2024
1 parent 642fcca commit 8e4bf6e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 17 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
env:
POSTGRES_DB: go_pg_migrations
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: go_pg_migrations_user
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
check-latest: true

- name: Set up
run: make setup

- name: Install
run: make install

- name: Lint
run: make lint

- name: Test
run: make test

- name: Enforce
run: make enforce

- name: Coveralls
run: make coveralls
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 8e4bf6e

Please sign in to comment.