-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (39 loc) · 1.27 KB
/
run_unit_tests.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Go
on: [push, pull_request]
env:
GO_VERSION: "1.20"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: "Install Go ${{env.GO_VERSION}}"
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: "${{env.GO_VERSION}}"
- name: Install Ginkgo CLI
run: |
go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Run tests
run: |
make test_unit
- name: Run postgres 10 tests
run: |
make start_postgres_10 run_postgres_sql_tests stop_postgres_10
- name: Run postgres 11 tests
run: |
make start_postgres_11 run_postgres_sql_tests stop_postgres_11
- name: Run postgres 12 tests
run: |
make start_postgres_12 run_postgres_sql_tests stop_postgres_12
- name: Run postgres 13 tests
run: |
make start_postgres_13 run_postgres_sql_tests stop_postgres_13
- name: Run mysql 8.0
run: |
make start_mysql_80 run_mysql_sql_tests stop_mysql_80
- name: Run mysql 5.7
run: |
make start_mysql_57 run_mysql_sql_tests stop_mysql_57