Skip to content

Merge pull request #16 from TheFeij/ft/grpc-authorization #43

Merge pull request #16 from TheFeij/ft/grpc-authorization

Merge pull request #16 from TheFeij/ft/grpc-authorization #43

Workflow file for this run

# 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: ci-test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16rc1-alpine3.18
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: 1234
POSTGRES_DB: simple_bank_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Install Go Migrate
run: |
curl -L https://github.com/golang-migrate/migrate/releases/download/v4.16.2/migrate.linux-amd64.tar.gz | tar xvz
sudo mv migrate /usr/bin
which migrate
- name: Run migrations
run: make testmigrateup
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.2'
id: go
- name: Test
run: make test