Skip to content

Merge pull request #47 from smallstep/max/remove-golang-ci #44

Merge pull request #47 from smallstep/max/remove-golang-ci

Merge pull request #47 from smallstep/max/remove-golang-ci #44

Workflow file for this run

name: CI
on:
push:
tags-ignore:
- 'v*'
branches:
- 'master'
pull_request:
workflow_call:
jobs:
ci:
uses: smallstep/workflows/.github/workflows/goCI.yml@main
with:
only-latest-golang: false
run-codeql: true
run-test: false
secrets: inherit
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
mysql:
image: mysql:5.7
env:
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
go: [ 'stable', 'oldstable' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Test
run: V=1 make ci-test