Skip to content

Commit 5043cc3

Browse files
committed
base migration
1 parent 8c88d65 commit 5043cc3

File tree

2 files changed

+40
-36
lines changed

2 files changed

+40
-36
lines changed

.drone.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: ci
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: read
9+
env:
10+
GO_VERSION: 1.23
11+
jobs:
12+
tests:
13+
runs-on: ubuntu-latest
14+
services:
15+
mysql:
16+
image: mysql:8.0
17+
env:
18+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
19+
MYSQL_DATABASE: mysql
20+
MYSQL_USER: mysql
21+
MYSQL_PASSWORD: mysql
22+
MYSQL_HOST: 127.0.0.1
23+
ports:
24+
- 3306:3306
25+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
26+
steps:
27+
- name: checkout
28+
uses: actions/checkout@v4
29+
- name: setup Go environment
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: ${{ env.GO_VERSION }}
33+
cache-dependency-path: "**/*.sum"
34+
- name: Test
35+
run: go test ./...
36+
- name: Integration tests
37+
run: go test ./...
38+
env:
39+
INTEGRATION_TESTS: "true"
40+
MYSQL_URL: "mysql:mysql@tcp(127.0.0.1:3306)/mysql"

0 commit comments

Comments
 (0)