Skip to content

tidy

tidy #354

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: test
env:
GO111MODULE: on
jobs:
test:
strategy:
matrix:
go-version: [ 1.23.x ]
runs-on: ubuntu-latest
steps:
- name: Install workflow dependencies
run: sudo apt install -y make gcc
- name: Install images
run: |
docker pull mysql:8.0.22
docker pull postgres:12.5
docker pull mcr.microsoft.com/mssql/server:2019-latest
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Cache go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Install dependencies
run: make deps
- name: Lint and test
run: make all COVERAGE=1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1