Skip to content

Use latest version of golangci-lint #74

Use latest version of golangci-lint

Use latest version of golangci-lint #74

Workflow file for this run

name: Continuous Integration
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Run linters
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
integration:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.18.x", "1.19.x", "1.20.x", "1.21.x"]
services:
mysql8:
image: mysql:8
env:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: pass
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping -ppass"
--health-interval 10s
--health-start-period 10s
--health-timeout 5s
--health-retries 10
postgres15:
image: postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: pass
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Create Table
run: |
make mysql
make psql
- name: Run integration tests
run: go test ./...