-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 1.02 KB
/
integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Integration Test
on:
pull_request:
branches:
- main
jobs:
integration-test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7.30
env:
MYSQL_DATABASE: integration
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_ROOT_PASSWORD: ''
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- name: Create Integration Databases
run: |
mysql -h127.0.0.1 -uroot -e "create database m1_integration"
mysql -h127.0.0.1 -uroot -e "create database m2_integration"
- name: Import Fixtures
run: |
mysql -h127.0.0.1 -uroot m1_integration < $GITHUB_WORKSPACE/fixture/magento1_integration/config.sql
mysql -h127.0.0.1 -uroot m2_integration < $GITHUB_WORKSPACE/fixture/magento2_integration/config.sql
- name: Run Integration Tests
run: go test --tags=integration