Skip to content

Vendor builder/ps in internal #12

Vendor builder/ps in internal

Vendor builder/ps in internal #12

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
paths-ignore:
- "**.md"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
squirrel:
name: Squirrel
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.20", "1.21", "1.22"]
services:
mysql:
image: mysql:8
env:
MYSQL_DATABASE: squirrel
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
postgres:
image: postgres:14
env:
POSTGRES_DB: squirrel
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: |
go test
- name: Integration (sqlite3)
run: |
CGO_ENABLED=1 go test -args -driver sqlite3
working-directory: integration
- name: Integration (mysql)
run: |
go test -args -driver mysql -dataSource root:root@/squirrel
working-directory: integration
- name: Integration (postgres)
run: |
go test -args -driver postgres -dataSource 'postgres://postgres:[email protected]/squirrel?sslmode=disable'
working-directory: integration