mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
setup mysql
This commit is contained in:
parent
c869bac166
commit
9b5ba3780c
12
.github/workflows/go.yml
vendored
12
.github/workflows/go.yml
vendored
|
@ -15,8 +15,13 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
redis-version:
|
redis-version:
|
||||||
- 6.2
|
- 6.2
|
||||||
|
env:
|
||||||
|
DB_DATABASE: bbgo
|
||||||
|
DB_USER: root
|
||||||
|
DB_PASSWORD: root
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
|
@ -28,7 +33,12 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
|
|
||||||
- name: Setup redis
|
- name: Set up MySQL
|
||||||
|
run: |
|
||||||
|
sudo /etc/init.d/mysql start
|
||||||
|
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Set up redis
|
||||||
uses: shogo82148/actions-setup-redis@v1
|
uses: shogo82148/actions-setup-redis@v1
|
||||||
with:
|
with:
|
||||||
redis-version: ${{ matrix.redis-version }}
|
redis-version: ${{ matrix.redis-version }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user