-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.28 KB
/
test.yml
File metadata and controls
48 lines (38 loc) · 1.28 KB
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
name: Test
on: [push, pull_request]
jobs:
test:
name: DUB Tests
strategy:
matrix:
os: [ubuntu-latest]
dc: [dmd-latest, ldc-latest, ldc-1.30.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: Install MariaDB server
run: |
sudo apt-get install -qq -y mariadb-server mariadb-client
sudo mariadb -e "CREATE USER 'u_oceandrift'@'localhost' IDENTIFIED BY 'p_oceandrift'"
sudo mariadb -e "GRANT ALL ON ``d_oceandrift``.* TO 'u_oceandrift'@'localhost'"
sudo mariadb -e "FLUSH PRIVILEGES"
- name: Install SQLite3
run: sudo apt-get install -qq -y libsqlite3-dev
- name: Build library
run: dub -q build
- name: "Test DBAL: SQLite3"
working-directory: ./tests/dbal_sqlite3
run: dub -q test
- name: "Test DBAL: MariaDB"
working-directory: ./tests/dbal_mariadb
run: dub -q test
- name: "Test ORM: SQLite3"
working-directory: ./tests/orm_sqlite3
run: dub -q test
- name: "Test ORM: MariaDB"
working-directory: ./tests/orm_mariadb
run: dub -q test