Skip to content

Go

Go #283

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * *'
jobs:
build:
strategy:
matrix:
postgres-version: [16, 15, 14, 13, 12]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
ports:
- "5432:5432"
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: everyone
POSTGRES_DB: postgres
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Test
run: |
make test
- name: Upload coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.html