xorm/.gitea/workflows/test-mysql.yml
Lunny Xiao 04d36cfa81
Some checks failed
test cockroach / test cockroach (push) Failing after 5m3s
test mssql / test mssql (push) Successful in 5m32s
test tidb / test tidb (push) Successful in 5m24s
test sqlite / unit test & test sqlite (push) Successful in 8m31s
test mariadb / test mariadb (push) Successful in 4m43s
test mysql / test mysql (push) Successful in 4m55s
test mysql8 / test mysql8 (push) Successful in 4m57s
test postgres / test postgres (push) Successful in 4m11s
Use actions instead of drone (#2258)
Reviewed-on: #2258
2023-05-25 18:15:09 +08:00

56 lines
1.5 KiB
YAML

name: test mysql
on:
push:
branches:
- master
pull_request:
env:
GOPROXY: https://goproxy.io,direct
GOPATH: /go_path
GOCACHE: /go_cache
jobs:
test-mysql:
name: test mysql
runs-on: ubuntu-latest
steps:
# - name: cache go path
# id: cache-go-path
# uses: https://github.com/actions/cache@v3
# with:
# path: /go_path
# key: go_path-${{ github.repository }}-${{ github.ref_name }}
# restore-keys: |
# go_path-${{ github.repository }}-
# go_path-
# - name: cache go cache
# id: cache-go-cache
# uses: https://github.com/actions/cache@v3
# with:
# path: /go_cache
# key: go_cache-${{ github.repository }}-${{ github.ref_name }}
# restore-keys: |
# go_cache-${{ github.repository }}-
# go_cache-
- uses: actions/setup-go@v3
with:
go-version: 1.20
- uses: https://github.com/actions/checkout@v3
- name: test mysql utf8mb4
env:
TEST_MYSQL_HOST: mysql
TEST_MYSQL_CHARSET: utf8mb4
TEST_MYSQL_DBNAME: xorm_test
TEST_MYSQL_USERNAME: root
TEST_MYSQL_PASSWORD:
run: TEST_QUOTE_POLICY=reserved make test-mysql-tls
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: xorm_test
ports:
- 3306:3306