Skip to content

Commit

Permalink
<test)>(github): Update workflows
Browse files Browse the repository at this point in the history
Updates workflows

#13
  • Loading branch information
lc-1010 committed Jun 25, 2023
1 parent 0af3220 commit 8d23d1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
pull_request:
branches: [ "main" ]

env:
DB_DATABASE: blog_service
DB_USER: root
DB_PASSWORD: root

jobs:

build:
Expand All @@ -21,6 +26,11 @@ jobs:
with:
go-version: 1.19

- name: "Mysql Setup"
run : |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- name: Build
run: go build -v ./...

Expand Down

0 comments on commit 8d23d1d

Please sign in to comment.