Test env variables in github action

This commit is contained in:
Granty1
2020-04-09 14:58:34 +08:00
parent aabf7c0656
commit 4d2c13d83a
2 changed files with 10 additions and 4 deletions

View File

@@ -30,7 +30,13 @@ jobs:
run: |
go build -v .
working-directory: ./server
- name: Modify config params
run: |
sed -i 's/%{address}/$MYSQL_ADDR/' config.yaml
sed -i 's/%{username}/$MYSQL_USERNAME/' config.yaml
sed -i 's/%{password}/$MSQL_PASSWORD/' config.yaml
cat config.yaml
working-directory: ./server
- name: Run
run: |
nohup ./gin-vue-admin &