Skip to content

Commit

Permalink
add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
azuki774 committed Aug 3, 2024
1 parent e4fb59c commit 303b7bf
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,32 @@ jobs:

- name: Test
run: make test


e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22

- name: Build
run: make bin

- name: Ready for MariaDB
run: until mysql -u root -ppassword -h 127.0.0.1 -e '\q'; do sleep 1; done # DBが起動して応答できるまで待つ

- name: Migration
run: make migration

services:
mariadb:
image: mariadb:11
ports:
- "3306:3306"
env:
MYSQL_DATABASE: mfimporter
MYSQL_ROOT_PASSWORD: password
TZ: Asia/Tokyo

0 comments on commit 303b7bf

Please sign in to comment.